MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail23036.d
blob8920586c67a8a4ff0ce1def51727d0288d30c7f3
1 // https://issues.dlang.org/show_bug.cgi?id=23036
3 /*
4 TEST_OUTPUT:
5 ---
6 fail_compilation/fail23036.d(12): Error: `struct S` may not define both a rvalue constructor and a copy constructor
7 fail_compilation/fail23036.d(15): rvalue constructor defined here
8 fail_compilation/fail23036.d(14): copy constructor defined here
9 ---
12 struct S
14 this(ref S) {}
15 this(S, int a = 2) {}
18 void main()
20 S a;
21 S b = a;