gcc/testsuite/gcc.dg/pr88870.c
raw| 1 | /* PR rtl-optimization/88870 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-O1 -fexceptions -fnon-call-exceptions -ftrapv -fno-tree-dominator-opts" } */ |
| 4 | |
| 5 | int a, b; |
| 6 | |
| 7 | void |
| 8 | foo (int *x) |
| 9 | { |
| 10 | int c = 0; |
| 11 | { |
| 12 | int d; |
| 13 | x = &c; |
| 14 | for (;;) |
| 15 | { |
| 16 | x = &d; |
| 17 | b = 0; |
| 18 | d = c + 1; |
| 19 | b = c = 1; |
| 20 | ++a; |
| 21 | } |
| 22 | } |
| 23 | } |