aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/c11-complit-3.c
blob: e85b4edc871ed97e8325957f97f0e56113b81801 (plain)
1
2
3
4
5
6
7
/* Test C23 storage class specifiers in compound literals not permitted for
   C11, but -Wno-c11-c23-compat disables the -pedantic diagnostic for that.  */
/* { dg-do compile } */
/* { dg-options "-std=c11 -pedantic-errors -Wno-c11-c23-compat" } */

int *ps = &(static int) { 1 };
int ss = sizeof (static int) { 1 };