aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/debug/pr66432.c
blob: cf36799f3aaacde5af0eb276d0b00d7f74e54c72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* PR debug/66432 */
/* { dg-do compile } */
/* { dg-options "-O2 -g" } */

extern void baz (const char *, const char *) __attribute__ ((__noreturn__));

void
foo (int x, int y[x][x])
{
  if (x < 2)
    baz ("", "");
}

void
bar (void)
{
  int z[2][2] = { { 1, 2 }, { 3, 4 } };
  foo (2, z);
}