c++: fix explicit/copy problem [PR109247]
[official-gcc.git] / gcc / testsuite / gdc.dg / torture / simd22438.d
blob9199be67e13c94b89fcd07a54ed3d61a58fec5bd
1 // https://issues.dlang.org/show_bug.cgi?id=22438
2 // { dg-additional-options "-mavx" { target avx_runtime } }
3 // { dg-do run }
4 // { dg-skip-if "needs gcc/config.d" { ! d_runtime } }
6 struct T22438 { int x; double d; }
8 T22438 foo22438(int x, double d) { return T22438(x, d); }
10 struct S22438 { T22438 t; string r; }
12 void main()
14 S22438 s = S22438(foo22438(10, 3.14), "str");
15 assert(s.t.x == 10);
16 assert(s.t.d == 3.14);
17 assert(s.r == "str");