gcc/testsuite/gcc.dg/torture/ssa-fre-4.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */ |
| 3 | /* { dg-additional-options "-fdump-tree-fre1" } */ |
| 4 | |
| 5 | int x; |
| 6 | int main() |
| 7 | { |
| 8 | x = 0; |
| 9 | if (x) |
| 10 | { |
| 11 | for (int i = 0; i < 10; ++i) |
| 12 | x = i; |
| 13 | } |
| 14 | return x; |
| 15 | } |
| 16 | |
| 17 | /* { dg-final { scan-tree-dump "return 0;" "fre1" } } */ |