gcc/testsuite/gcc.dg/torture/pr115388.c
raw| 1 | /* { dg-do run } */ |
| 2 | |
| 3 | int printf(const char *, ...); |
| 4 | int a[10], b, c, d[0], h, i, j, k, l; |
| 5 | signed char e = -1, g; |
| 6 | volatile int f; |
| 7 | static void n() { |
| 8 | while (e >= 0) |
| 9 | while (1) |
| 10 | ; |
| 11 | for (b = 2; b >= 0; b--) { |
| 12 | for (k = 0; k < 4; k++) { |
| 13 | if (e || i) |
| 14 | continue; |
| 15 | for (h = 0; h < 2; h++) |
| 16 | f; |
| 17 | } |
| 18 | for (l = 2; l >= 0; l--) |
| 19 | g = 0; |
| 20 | for (; g < 1; g++) |
| 21 | if (c) |
| 22 | d[l] = 1; |
| 23 | a[9] = 0; |
| 24 | a[b] = 1; |
| 25 | while (j) |
| 26 | printf("\n"); |
| 27 | } |
| 28 | } |
| 29 | int main() { |
| 30 | n(); |
| 31 | if (a[1] != 1) |
| 32 | __builtin_abort(); |
| 33 | return 0; |
| 34 | } |