gcc/testsuite/gcc.dg/torture/pr101025.c
raw| 1 | /* { dg-do run } */ |
| 2 | |
| 3 | int a[10]; |
| 4 | int b, d, g; |
| 5 | volatile char c; |
| 6 | short e; |
| 7 | volatile int f; |
| 8 | int main() |
| 9 | { |
| 10 | for (; d <= 9; d++) { |
| 11 | b = e = 0; |
| 12 | for (; e < 4; e++) |
| 13 | a[e] = 4; |
| 14 | for (; b <= 3; b++) |
| 15 | if (g) |
| 16 | f = 0; |
| 17 | else |
| 18 | a[b] = c; |
| 19 | } |
| 20 | if (a[1] != 0) |
| 21 | __builtin_abort (); |
| 22 | return 0; |
| 23 | } |