gcc/testsuite/gcc.dg/20060410.c
raw| 1 | /* { 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" { xfail nvptx-*-* } } } */ |