MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / test21204.d
blob45bb6d727ab30c89d2c048a32963b18f3a601d92
1 // https://issues.dlang.org/show_bug.cgi?id=21204
2 /*
3 TEST_OUTPUT:
4 ---
5 fail_compilation/test21204.d(22): Error: generating an `inout` copy constructor for `struct test21204.B` failed, therefore instances of it are uncopyable
6 ---
7 */
9 struct A
11 this(ref A other) {}
14 struct B
16 A a;
19 void example()
21 B b1;
22 B b2 = b1;