OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [20060410.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-g" } */
3
 
4
/* Make sure we didn't eliminate foo because we thought it was unused.  */
5
 
6
struct foo
7
{
8
    int i;
9
};
10
 
11
int bar (void)
12
{
13
    return ((struct foo *)0x1234)->i;
14
}
15
 
16
/* { dg-final { scan-assembler "foo" } } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.