aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/20060410.c
blob: 88253bb43f3e4441793944d2f071dd9f24ed0d35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */
/* { dg-options "-g" } */

/* Make sure we didn't eliminate foo because we thought it was unused.  */

struct foo 
{
    int i;
};

int bar (void)
{
    return ((struct foo *)0x1234)->i;
}

/* { dg-final { scan-assembler "foo" } } */