☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gcc.dg
/
pr93577-1.c
☽
☼
gcc/testsuite/gcc.dg/pr93577-1.c
code
plain
raw
1
/* Test ICE with variable-size struct initializer: bug 93577. */
2
/* { dg-do compile } */
3
/* { dg-options "" } */
4
5
void
6
f (int c)
7
{
8
struct s
9
{
10
int x[c];
11
struct
12
{
13
int z;
14
} nest;
15
} v = { 1, 2 }; /* { dg-error "variable-sized object may not be initialized" } */
16
}