mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-07-11 01:44:10 +02:00
Complex number should now follow the D ABI on x86. They're also treated as first class values now. Big change.
This commit is contained in:
8
tests/mini/complex4.d
Normal file
8
tests/mini/complex4.d
Normal file
@@ -0,0 +1,8 @@
|
||||
module complex4;
|
||||
|
||||
void main()
|
||||
{
|
||||
cfloat c = 2f + 3fi;
|
||||
float r = cast(float)c;
|
||||
ifloat i = cast(ifloat)c;
|
||||
}
|
||||
Reference in New Issue
Block a user