modula2: M2MetaError.{def,mod} and P2SymBuild.mod further cleanup
[official-gcc.git] / gcc / testsuite / gcc.dg / c23-complit-6.c
blob53a7abf7ea95514cd2523ebb28f572d2ccabb419
1 /* Test C23 storage class specifiers in compound literals diagnosed with
2 -Wc11-c23-compat. */
3 /* { dg-do compile } */
4 /* { dg-options "-std=c23 -Wc11-c23-compat" } */
6 int *ps = &(static int) { 1 }; /* { dg-warning "forbids storage class specifiers in compound literals" } */
7 int ss = sizeof (static int) { 1 }; /* { dg-warning "forbids storage class specifiers in compound literals" } */