Debian Codegraph @

gcc/testsuite/gcc.dg/gnu23-tag-1.c

raw
1 /*
2 * { dg-do compile }
3 * { dg-options "-std=gnu23" }
4 */
5
6 struct r { int a; char b[]; };
7 struct r { int a; char b[0]; }; /* allowed GNU extension */
8 struct r { int a; char b[1]; }; /* { dg-error "redefinition of struct or union" } */
9
10