Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gcc.dg / vla-stexp-1.c
blobbaaad36eb12df117ec82e076213d0daebec909af
1 /* PR29970*/
2 /* { dg-do run } */
3 /* { dg-options "-Wall -O0" } */
4 /* { dg-require-effective-target alloca } */
6 int foo(void)
8 int n = 0;
9 return sizeof(*({ n = 10; struct foo { int x[n]; } x; &x; }));
13 int main()
15 if (sizeof(struct foo { int x[10]; }) != foo())
16 __builtin_abort();
18 return 0;