1 /* { dg-do compile } */
2 /* { dg-require-effective-target alloca } */
3
4 void foo(int n)
5 {
6 struct X { int a[n]; } y;
7
8 struct X baz (struct X x)
9 {
10 x.a[0] = 1;
11 return x;
12 }
13
14 y.a[0] = 0;
15 y = baz(y);
16 if (y.a[0] != 1)
17 __builtin_abort ();
18 }