repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr93577-2.c
blob
c61589ea670904db0bd2f10129d0fbc922f2f0db
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
a
,
b
;
14
}
nest
;
15
}
v
= { .
nest
.
b
=
1
, .
nest
.
a
=
2
};
/* { dg-error "variable-sized object may not be initialized" } */
16
}