gcc/testsuite/gcc.c-torture/compile/pr84111.c
raw| 1 | /* PR tree-optimization/84111 */ |
| 2 | |
| 3 | void |
| 4 | foo (int x, int y, int z) |
| 5 | { |
| 6 | int a = 0; |
| 7 | int *b = &x; |
| 8 | |
| 9 | while (a < 1) |
| 10 | { |
| 11 | int c = y; |
| 12 | *b = x; |
| 13 | lab: |
| 14 | for (a = 0; a < 36; ++a) |
| 15 | { |
| 16 | *b = 0; |
| 17 | if (x != 0) |
| 18 | y = 0; |
| 19 | while (c < 1) |
| 20 | ; |
| 21 | } |
| 22 | } |
| 23 | if (z < 33) |
| 24 | { |
| 25 | b = (int *) 0; |
| 26 | ++y; |
| 27 | ++z; |
| 28 | if (x / *b != 0) |
| 29 | goto lab; |
| 30 | } |
| 31 | } |