blob: 278146b16bd777c58ca6fb6b702a5e4478004f3e [file] [log] [blame]
/* Test ICE with variable-size struct initializer: bug 93577. */
/* { dg-do compile } */
/* { dg-options "" } */
void
f (int c)
{
struct s
{
int a;
int x[c];
struct
{
int a, b;
} nest;
} v = { .a = 2, .nest.b = 1 }; /* { dg-error "variable-sized object may not be initialized" } */
}