MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / failCopyCtor.d
blobf341675f32814a2713335e27e320e14f0cf3e981
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/failCopyCtor.d(10): Error: `struct A` may not define both a rvalue constructor and a copy constructor
5 fail_compilation/failCopyCtor.d(12): rvalue constructor defined here
6 fail_compilation/failCopyCtor.d(13): copy constructor defined here
7 ---
8 */
10 struct A
12 this(immutable A a) {}
13 this(ref shared A a) immutable {}
14 this(ref A a) {}