1 /* Test C2X support for empty initializers: invalid use cases with GNU
3 /* { dg-do compile } */
4 /* { dg-options "-std=gnu2x" } */
9 /* Make sure a non-braced initializer for a VLA-in-struct is still not
11 struct s { int x[a]; };
13 for (int i = 0; i < a; i++)
15 struct s c = b; /* { dg-error "variable-sized object may not be initialized except with an empty initializer" } */