Debian Codegraph @

gcc/testsuite/gcc.dg/typename-vla-3.c

raw
1 /* { dg-do run }
2 * { dg-options "-std=c99" }
3 * */
4
5 static char tmp[2];
6
7 static int f(int n, char (*x)[sizeof *(++n, (struct { char (*x)[n]; }){ &tmp }).x]) /* { dg-warning "anonymous struct" } */
8 {
9 return sizeof *x;
10 }
11
12 int main (void)
13 {
14 if (2 != f(1, &tmp))
15 __builtin_abort ();
16 return 0;
17 }
18