Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
ext
/
anon-struct10.C
blob: 9b01bf3fada61860cf58a8f6d3b580f90e5ef468 [
file
] [
log
] [
blame
]
// PR c++/101767
// { dg-do compile { target c++11 } }
// { dg-additional-options "-Wno-pedantic" }
typedef
struct
{
struct
{
int
x
;
};
union
{
int
y
;
float
z
;
};
}
S
;
void
foo
(
void
)
{
[[
maybe_unused
]]
S a
=
{
.
x
=
1
,
.
y
=
0
};
}