comparison tests/mini/complex1.d @ 341:1bb99290e03a trunk

[svn r362] Started merging the old 'test' dir as well as the newer 'tangotests' dir into 'tests/mini' and 'tests/minicomplex'.
author lindquist
date Sun, 13 Jul 2008 02:51:19 +0200
parents test/complex1.d@4d1e9eb001e0
children fbb1a366cfbc
comparison
equal deleted inserted replaced
340:351c0077d0b3 341:1bb99290e03a
1 module complex1;
2
3 void main()
4 {
5 cfloat cf1 = 3f + 0i;
6 cfloat cf2 = 4f + 1i;
7 cfloat cf3 = func();
8 auto c1 = cf1 + cf2;
9 auto c2 = cf2 - cf3;
10 {
11 auto c3 = cf1 * cf3;
12 {
13 auto c4 = cf2 / cf3;
14 }
15 }
16 }
17
18 cfloat func()
19 {
20 return 3f + 1i;
21 }