c++: fix explicit/copy problem [PR109247]
[official-gcc.git] / gcc / testsuite / gdc.dg / torture / gdc115.d
blob79693e8d32960a9e088b6caa055b40a52776e2a1
1 // https://bugzilla.gdcproject.org/show_bug.cgi?id=115
2 // { dg-do run }
3 // { dg-skip-if "needs gcc/config.d" { ! d_runtime } }
5 void main()
7 union U
9 float f;
10 uint i;
12 float a = 123.0;
13 const l = U(a);
15 assert(l.i == U(a).i);