]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/vla-22.c
replace ISL with isl
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / vla-22.c
CommitLineData
c6d99cad
JJ
1/* { dg-do compile } */
2/* { dg-options "-O2" } */
2e969ce5 3/* { dg-require-effective-target alloca } */
c6d99cad
JJ
4
5extern void bar (int *);
6
7static inline __attribute__((always_inline))
8int
9foo (int i)
10{
11 struct S {
12 int ar[1][i];
13 } s;
14
15 s.ar[0][0] = 0;
16 bar (&s.ar[0][0]);
17}
18
19void
20baz (int i)
21{
22 foo (i + 2);
23}