2014-08-04 Ed Schonberg <schonberg@adacore.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / 20060410.c
blob88253bb43f3e4441793944d2f071dd9f24ed0d35
1 /* { dg-do compile } */
2 /* { dg-options "-g" } */
4 /* Make sure we didn't eliminate foo because we thought it was unused. */
6 struct foo
8 int i;
9 };
11 int bar (void)
13 return ((struct foo *)0x1234)->i;
16 /* { dg-final { scan-assembler "foo" } } */