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);
}