mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 10:53:14 +01:00
14 lines
181 B
D
14 lines
181 B
D
module complex5;
|
|
|
|
void main()
|
|
{
|
|
cfloat c = 3+2i;
|
|
foo(c);
|
|
}
|
|
|
|
void foo(cfloat c)
|
|
{
|
|
assert(c.re > 2.9999 && c.re < 3.0001);
|
|
assert(c.im > 1.9999i && c.im < 2.0001);
|
|
}
|