c: C2x storage class specifiers in compound literals
[platform/upstream/gcc.git] / gcc / testsuite / gcc.dg / c11-complit-3.c
1 /* Test C2x storage class specifiers in compound literals not permitted for
2    C11, but -Wno-c11-c2x-compat disables the -pedantic diagnostic for that.  */
3 /* { dg-do compile } */
4 /* { dg-options "-std=c11 -pedantic-errors -Wno-c11-c2x-compat" } */
5
6 int *ps = &(static int) { 1 };
7 int ss = sizeof (static int) { 1 };