gcc/testsuite/gcc.c-torture/execute/pr109925.c
raw| 1 | /* PR tree-optimization/109925 */ |
| 2 | |
| 3 | int a, c, f; |
| 4 | |
| 5 | int |
| 6 | main () |
| 7 | { |
| 8 | int g[2]; |
| 9 | for (c = 0; c < 2; c++) |
| 10 | { |
| 11 | { |
| 12 | char h[20], *b = h; |
| 13 | int d = 48, e = 0; |
| 14 | while (d && e < 5) |
| 15 | b[e++] = d /= 10; |
| 16 | f = e; |
| 17 | } |
| 18 | g[f - 2 + c] = 0; |
| 19 | } |
| 20 | for (;;) |
| 21 | { |
| 22 | for (; a <= 4; a++) |
| 23 | if (g[0]) |
| 24 | break; |
| 25 | break; |
| 26 | } |
| 27 | if (a != 5) |
| 28 | __builtin_abort (); |
| 29 | return 0; |
| 30 | } |