Sign in
gnu
/
gcc
/
e5cfb9cac1d7aba9a8ea73bfe7922cfaff9d61f3
/
.
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
20030109-1.c
blob: 1bea931f64ca9fc8bcdb0cf016b48d2d30217a18 [
file
] [
log
] [
blame
]
/* PR c/8032 */
/* Verify that an empty initializer inside a partial
parent initializer doesn't confuse GCC. */
struct
X
{
int
a
;
int
b
;
int
z
[];
};
struct
X x
=
{
.
b
=
40
,
.
z
=
{}
};
int
main
()
{
if
(
x
.
b
!=
40
)
abort
();
return
0
;
}