gcc/testsuite/gcc.dg/torture/pr112585.c
raw| 1 | /* { dg-do run } */ |
| 2 | /* { dg-additional-options "-ftree-loop-distribution" } */ |
| 3 | |
| 4 | static int a[10], b; |
| 5 | char c, *d = &c, e; |
| 6 | int main() |
| 7 | { |
| 8 | int f = 0; |
| 9 | for (; f < 9; f++) { |
| 10 | a[f] = 1; |
| 11 | a[f + 1] = e; |
| 12 | for (b = 0; b < 8; b++) |
| 13 | *d = 0; |
| 14 | } |
| 15 | if (a[2] != 1) |
| 16 | __builtin_abort(); |
| 17 | return 0; |
| 18 | } |