Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
b19685.d
blob: 99addd8392496d88402172e463871499275a085f [
file
] [
log
] [
blame
]
/* TEST_OUTPUT:
---
fail_compilation/b19685.d(6): Error: overlapping default initialization for field `b` and `a`
---
*/
struct
S
{
union
{
struct
{
int
a
=
123
;
}
struct
{
int
b
=
456
;
}
}
}
void
main
()
{
S s
;
assert
(
s
.
b
==
123
);
}