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