MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail9346.d
blob19d0baa65f88afd73786e0cab97cddcb8998e397
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail9346.d(26): Error: struct `fail9346.S` is not copyable because it has a disabled postblit
5 fail_compilation/fail9346.d(27): Error: struct `fail9346.S` is not copyable because it has a disabled postblit
6 ---
7 */
9 struct S
11 @disable this(this);
13 struct SS1
15 S s;
17 struct SS2
19 S s;
20 this(this){}
23 void main()
25 S s;
26 SS1 ss1 = SS1(s);
27 SS2 ss2 = SS2(s);