Debian Codegraph @

gcc/testsuite/gcc.dg/pr112488-2.c

raw
1 /* { dg-do compile }
2 * { dg-options "-std=gnu23 -O1" } */
3
4 extern void abort(void);
5
6 int test(int *n, struct T { char a[*n], b[*n]; }*) {
7 return sizeof(struct T) - sizeof(struct T);
8 }
9
10 void f1(int *p) {
11 if (test(p, 0)) abort();
12 }
13