d: Merge upstream dmd, druntime 4c18eed967, phobos d945686a4.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / b19685.d
blob99addd8392496d88402172e463871499275a085f
1 /* TEST_OUTPUT:
2 ---
3 fail_compilation/b19685.d(6): Error: overlapping default initialization for field `b` and `a`
4 ---
5 */
6 struct S
8 union
10 struct { int a = 123; }
11 struct { int b = 456; }
15 void main()
17 S s;
18 assert(s.b == 123);