gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-104.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -fdump-tree-fre1" } */ |
| 3 | |
| 4 | int a; |
| 5 | int *b = &a; |
| 6 | int **c = &b; |
| 7 | int d; |
| 8 | void bar25_(void); |
| 9 | void foo(void); |
| 10 | int main() { |
| 11 | int __attribute__((aligned(sizeof(int)))) e[][1] = {0, 0, 0, 0, 0, 1}; |
| 12 | for (;;) { |
| 13 | bar25_(); |
| 14 | /* We should optimistically treat a == 0 because of the bounds of |
| 15 | the object. */ |
| 16 | if (e[5][a]) |
| 17 | break; |
| 18 | e[a][0] = 0; |
| 19 | foo(); |
| 20 | } |
| 21 | *c = &d; |
| 22 | } |
| 23 | |
| 24 | /* { dg-final { scan-tree-dump-not "foo" "fre1" { xfail *-*-* } } } */ |