d: Merge upstream dmd, druntime 4c18eed967, phobos d945686a4.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / failCopyCtor2.d
blob5e8f8c40f7daabe5dc34e90c4dc066676413b899
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/failCopyCtor2.d(15): Error: `struct B` may not define a rvalue constructor and have fields with copy constructors
5 fail_compilation/failCopyCtor2.d(18): rvalue constructor defined here
6 fail_compilation/failCopyCtor2.d(17): field with copy constructor defined here
7 ---
8 */
10 struct A
12 this (ref shared A a) immutable {}
15 struct B
17 A a;
18 this(immutable B b) shared {}