c++: Implement for namespace statics CWG 2867 - Order of initialization for structure...
[official-gcc.git] / gcc / testsuite / gcc.dg / pr112488-2.c
blobb5e5fbd3f2bba26e3395f36eb2aef33a924419b8
1 /* { dg-do compile }
2 * { dg-options "-std=gnu23 -O1" } */
4 extern void abort(void);
6 int test(int *n, struct T { char a[*n], b[*n]; }*) {
7 return sizeof(struct T) - sizeof(struct T);
10 void f1(int *p) {
11 if (test(p, 0)) abort();