☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gdc.dg
/
torture
/
gdc115.d
☽
☼
gcc/testsuite/gdc.dg/torture/gdc115.d
code
plain
raw
1
// https://bugzilla.gdcproject.org/show_bug.cgi?id=115
2
// { dg-do run }
3
// { dg-skip-if "needs gcc/config.d" { ! d_runtime } }
4
5
void 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
}