Debian Codegraph @

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

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