Debian Codegraph @

gcc/testsuite/gcc.dg/pr118061.c

raw
1 /* { dg-do "compile" } */
2 /* { dg-options "-std=gnu23" } */
3
4 int main()
5 {
6 struct { int x[1++]; } x; /* { dg-error "lvalue required as increment operand" } */
7 struct { int x[1++]; } y; /* { dg-error "lvalue required as increment operand" } */
8 }