gcc/testsuite/gcc.dg/torture/pr93586.c
raw| 1 | /* { dg-do run } */ |
| 2 | /* { dg-additional-options "-fgimple" } */ |
| 3 | |
| 4 | int __GIMPLE(ssa) foo(int j) |
| 5 | { |
| 6 | int c[1][10][1]; |
| 7 | int _1; |
| 8 | |
| 9 | __BB(2): |
| 10 | c[0][1][0] = 1; |
| 11 | c[0][1] = _Literal (int[1]) {}; |
| 12 | _1 = c[0][j_2(D)][0]; |
| 13 | return _1; |
| 14 | } |
| 15 | |
| 16 | int main() |
| 17 | { |
| 18 | if (foo (1) != 0) |
| 19 | __builtin_abort (); |
| 20 | return 0; |
| 21 | } |