Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.dg / vla-stexp-1.c
blob97d66937e9a3a85d0d009a50ea37e782fdad1a72
1 /* PR29970*/
2 /* { dg-do run } */
3 /* { dg-options "-Wall -O0" } */
5 int foo(void)
7 int n = 0;
8 return sizeof(*({ n = 10; struct foo { int x[n]; } x; &x; }));
12 int main()
14 if (sizeof(struct foo { int x[10]; }) != foo())
15 __builtin_abort();
17 return 0;