gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-92.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -fdump-tree-fre1" } */ |
| 3 | |
| 4 | extern void foo(void); |
| 5 | int a, c, *f, **d = &f; |
| 6 | char b; |
| 7 | int main() |
| 8 | { |
| 9 | if (a) { |
| 10 | b = 0; |
| 11 | int *g = &c; |
| 12 | *g = 0; |
| 13 | f = *d; |
| 14 | *d = f; |
| 15 | if ((2 ^ b) == 0) |
| 16 | foo(); |
| 17 | } |
| 18 | return 0; |
| 19 | } |
| 20 | |
| 21 | /* { dg-final { scan-tree-dump-not "foo" "fre1" } } */ |