(root)/
gcc-13.2.0/
gcc/
testsuite/
gdc.test/
compilable/
testCpCtor.d
// https://issues.dlang.org/show_bug.cgi?id=19870
struct T
{
    int i;
    this(ref return scope inout typeof(this) src)
        inout @safe pure nothrow @nogc
    {
        i = src.i;
    }
}

struct S
{
    T t;
}

void main()
{
    T a;
    S b = S(a);
}