c++: fix explicit/copy problem [PR109247]
[official-gcc.git] / gcc / testsuite / gdc.dg / torture / gdc57.d
blob579067bc21275c3d3d8cbd14ed580acfaaff3379
1 // https://bugzilla.gdcproject.org/show_bug.cgi?id=57
2 // { dg-do run }
3 // { dg-skip-if "needs gcc/config.d" { ! d_runtime } }
5 struct S57
7 int a;
8 long b;
9 // Doesn't happen for bigger structs
12 S57 bar57()
14 return S57(4, 42);
17 void main()
19 S57 s = bar57();
20 assert (s is S57(4, 42));