Mercurial > projects > dstress
view run/creal_01.d @ 374:f87ba6507260
added missing meta-data
author | thomask |
---|---|
date | Thu, 31 Mar 2005 09:01:33 +0000 |
parents | 8fd629339db4 |
children | 5511f9277078 |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ module dstress.run.creal_01; int main(){ real x1 = 2.0; real y1 = 3.0; real x2 = 5.0; real y2 = 7.0; ireal i = 1.0i; creal a = x1 + y1*i; creal b = x2 + y2*i; creal c = a + b; creal d = (x1+x2) + (y1*i+y2*i); assert(c == d); return 0; }