blob: d4d1f16f62e659c4095af6538d936be5170f841c [file] [log] [blame]
/* Test C2x storage class specifiers in compound literals not permitted for
C11. */
/* { dg-do compile } */
/* { dg-options "-std=c11 -pedantic" } */
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" } */