]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gdc.dg/torture/gdc115.d
d: Move all runnable tests in gdc.dg to gdc.dg/torture
[thirdparty/gcc.git] / gcc / testsuite / gdc.dg / torture / gdc115.d
CommitLineData
844fa2de 1// https://bugzilla.gdcproject.org/show_bug.cgi?id=115
72ddef62 2// { dg-do run }
844fa2de
IB
3// { dg-skip-if "needs gcc/config.d" { ! d_runtime } }
4
5void main()
6{
7 union U
8 {
9 float f;
10 uint i;
11 }
12 float a = 123.0;
13 const l = U(a);
14
15 assert(l.i == U(a).i);
16}