annotate tests/mini/complex1.d @ 883:b52d5de7783f

GC defines and linkage changes.
author Christian Kamm <kamm incasoftware de>
date Thu, 08 Jan 2009 18:20:02 +0100
parents fbb1a366cfbc
children
rev   line source
lindquist@90 1 module complex1;
lindquist@90 2
lindquist@90 3 void main()
lindquist@90 4 {
lindquist@104 5 cfloat cf1 = 3f + 0i;
lindquist@104 6 cfloat cf2 = 4f + 1i;
lindquist@104 7 cfloat cf3 = func();
lindquist@104 8 auto c1 = cf1 + cf2;
lindquist@104 9 auto c2 = cf2 - cf3;
lindquist@104 10 auto c3 = cf1 * cf3;
lindquist@104 11 auto c4 = cf2 / cf3;
lindquist@90 12 }
lindquist@104 13
lindquist@104 14 cfloat func()
lindquist@104 15 {
lindquist@104 16 return 3f + 1i;
lindquist@104 17 }