mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
17 lines
195 B
D
17 lines
195 B
D
// REQUIRED_ARGS: -c -m32 -O -inline
|
|
|
|
struct A
|
|
{
|
|
double a;
|
|
}
|
|
|
|
A makeA(double value)
|
|
{
|
|
return A(value);
|
|
}
|
|
|
|
double test(double x)
|
|
{
|
|
ulong p = *cast(ulong *)&x;
|
|
return makeA(x).a;
|
|
}
|