blob: 0cd0b86c54151b02697e3f594f761c3adb1c99cd [file] [log] [blame]
/* Test C2x storage class specifiers in compound literals diagnosed with
-Wc11-c2x-compat, but not errors with -pedantic-errors. */
/* { dg-do compile } */
/* { dg-options "-std=c2x -Wc11-c2x-compat -pedantic-errors" } */
int *ps = &(static int) { 1 }; /* { dg-warning "forbids storage class specifiers in compound literals" } */
int ss = sizeof (static int) { 1 }; /* { dg-warning "forbids storage class specifiers in compound literals" } */