/* Test C2x storage class specifiers in compound literals diagnosed with | |
-Wc11-c2x-compat. */ | |
/* { dg-do compile } */ | |
/* { dg-options "-std=c2x -Wc11-c2x-compat" } */ | |
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" } */ |