(root)/
gcc-13.2.0/
gcc/
testsuite/
gdc.test/
compilable/
test17970.d
shared struct Shared
{
    static Shared make()
    {
        return Shared();
    }

    ~this()
    {
    }
}

shared struct Foo
{
    ~this()
    {
    }
}

struct Inner { ~this() {} }
struct Outer { shared(Inner) inner; }

void main()
{
    Foo x = Foo();
    auto s = Shared.make();
    Outer _;
}