Debian Codegraph @

gcc/testsuite/gcc.dg/c23-tag-8.c

raw
1 /* { dg-do compile }
2 { dg-options "-std=c23" } */
3
4 void foo(void)
5 {
6 struct bar { struct bar* next; };
7 struct bar { struct bar* next; };
8 struct bar { struct bar { struct bar* next; }* next; }; /* { dg-error "nested" } */
9 }
10