d: Merge upstream dmd 568496d5b, druntime 178c44ff, phobos 574bf883b.
[official-gcc.git] / gcc / testsuite / gdc.test / compilable / testCpCtor.d
blob847c0f43693121135c3d01d6c039b4255e5da990
1 // https://issues.dlang.org/show_bug.cgi?id=19870
2 struct T
4 int i;
5 this(ref return scope inout typeof(this) src)
6 inout @safe pure nothrow @nogc
8 i = src.i;
12 struct S
14 T t;
17 void main()
19 T a;
20 S b = S(a);