d: Merge upstream dmd 568496d5b, druntime 178c44ff, phobos 574bf883b.
[official-gcc.git] / gcc / testsuite / gdc.test / compilable / pr9374.d
blob912639d40d671475de75760166d11d0bf6209539
1 // REQUIRED_ARGS: -preview=dip1000
3 // https://github.com/dlang/dmd/pull/9374
5 struct OnlyResult
7 this(return scope ref int v2);
9 void* data;
12 OnlyResult foo(return scope ref int v2);
14 OnlyResult only(int y)
16 if (y)
17 return OnlyResult(y);
18 return foo(y);