blob: 1fca2261ab7bf6fe2e36238fee3dbd5f2df2bd5c (
plain)
1
2
3
4
5
6
7
|
/* Test C23 storage class specifiers in compound literals diagnosed with
-Wc11-c23-compat, but not errors with -pedantic-errors. */
/* { dg-do compile } */
/* { dg-options "-std=c23 -Wc11-c23-compat -pedantic-errors" } */
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" } */
|