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