blob: 3ac4bb08d377e7448e2cd01d85504cb43f8c0435 [file] [log] [blame]
/* Test C23 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" } */