Debian Codegraph @

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

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