gcc/testsuite/gcc.c-torture/execute/20030216-1.c
raw| 1 | /* This test requires constant propagation of loads and stores to be |
| 2 | enabled. This is only guaranteed at -O2 and higher. Do not run |
| 3 | at -O1. */ |
| 4 | /* { dg-skip-if "requires higher optimization" { *-*-* } "-O1" "" } */ |
| 5 | |
| 6 | void link_error (void); |
| 7 | const double one=1.0; |
| 8 | int |
| 9 | main (void) |
| 10 | { |
| 11 | #ifdef __OPTIMIZE__ |
| 12 | if ((int) one != 1) |
| 13 | link_error (); |
| 14 | #endif |
| 15 | return 0; |
| 16 | } |