Sign in
gnu
/
gcc
/
refs/tags/basepoints/gcc-13
/
.
/
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
);
}