[committed] [RISC-V] Skip zbs-ext-2.c for -Oz as well
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / pr22061-4.c
blob14b11cead9709231ec2728aa2ba4e1a437f84b0f
1 /* { dg-skip-if "requires alloca" { ! alloca } { "-O0" } { "" } } */
2 void abort (void);
3 void exit (int);
5 void
6 bar (int N)
8 void foo (int a[2][N++]) {}
9 int a[2][N];
10 foo (a);
11 int b[2][N];
12 foo (b);
13 if (sizeof (a) != sizeof (int) * 2 * 1)
14 abort ();
15 if (sizeof (b) != sizeof (int) * 2 * 2)
16 abort ();
17 if (N != 3)
18 abort ();
21 int
22 main (void)
24 bar (1);
25 exit (0);