MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail4421.d
blob3aedfc31f3ea111068aa20da610e5ea543070a58
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail4421.d(16): Error: function `fail4421.U1.__postblit` destructors, postblits and invariants are not allowed in union `U1`
5 fail_compilation/fail4421.d(17): Error: destructor `fail4421.U1.~this` destructors, postblits and invariants are not allowed in union `U1`
6 fail_compilation/fail4421.d(18): Error: function `fail4421.U1.__invariant1` destructors, postblits and invariants are not allowed in union `U1`
7 ---
14 union U1
16 this(this);
17 ~this();
18 invariant() { }
21 struct S1
23 this(this);
24 ~this();
25 invariant() { }
28 union U2
30 S1 s1;
33 struct S2
35 union
37 S1 s1;
38 int j;