Debian Codegraph @

gcc/testsuite/gcc.dg/vla-stexp-1.c

raw
1 /* PR29970*/
2 /* { dg-do run } */
3 /* { dg-options "-Wall -O0" } */
4
5 int foo(void)
6 {
7 int n = 0;
8 return sizeof(*({ n = 10; struct foo { int x[n]; } x; &x; }));
9 }
10
11
12 int main()
13 {
14 if (sizeof(struct foo { int x[10]; }) != foo())
15 __builtin_abort();
16
17 return 0;
18 }