gcc/testsuite/gcc.dg/debug/pr66432.c
raw| 1 | /* PR debug/66432 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-O2 -g" } */ |
| 4 | |
| 5 | extern void baz (const char *, const char *) __attribute__ ((__noreturn__)); |
| 6 | |
| 7 | void |
| 8 | foo (int x, int y[x][x]) |
| 9 | { |
| 10 | if (x < 2) |
| 11 | baz ("", ""); |
| 12 | } |
| 13 | |
| 14 | void |
| 15 | bar (void) |
| 16 | { |
| 17 | int z[2][2] = { { 1, 2 }, { 3, 4 } }; |
| 18 | foo (2, z); |
| 19 | } |