blob: f7c89e631be32c094145a75802fee5bb8da0981e [file] [log] [blame]
/* { dg-skip-if "requires alloca" { ! alloca } { "-O0" } { "" } } */
void
bar (int N)
{
void foo (int a[2][N++]) {}
int a[2][N];
foo (a);
int b[2][N];
foo (b);
if (sizeof (a) != sizeof (int) * 2 * 1)
abort ();
if (sizeof (b) != sizeof (int) * 2 * 2)
abort ();
if (N != 3)
abort ();
}
int
main (void)
{
bar (1);
exit (0);
}