libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / c11-complit-2.c
blob3ac4bb08d377e7448e2cd01d85504cb43f8c0435
1 /* Test C23 storage class specifiers in compound literals not permitted for
2 C11. */
3 /* { dg-do compile } */
4 /* { dg-options "-std=c11 -pedantic" } */
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" } */