]>
Commit | Line | Data |
---|---|---|
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 | ||
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 | } |