annotate compile/c/cdouble_11_C.d @ 1321:e6887749b811

cleaned up remaining puremagic @uri@s
author thomask
date Sun, 31 Dec 2006 20:00:02 +0000
parents 23b89cbbe105
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1237
23b89cbbe105 [Issue 575] New: wrong evaluation of (creal * 2 + 1i)
thomask
parents:
diff changeset
1 // $HeadURL$
23b89cbbe105 [Issue 575] New: wrong evaluation of (creal * 2 + 1i)
thomask
parents:
diff changeset
2 // $Date$
23b89cbbe105 [Issue 575] New: wrong evaluation of (creal * 2 + 1i)
thomask
parents:
diff changeset
3 // $Author$
23b89cbbe105 [Issue 575] New: wrong evaluation of (creal * 2 + 1i)
thomask
parents:
diff changeset
4
23b89cbbe105 [Issue 575] New: wrong evaluation of (creal * 2 + 1i)
thomask
parents:
diff changeset
5 // @author@ Thomas Kühne <thomas-doop@kuehne.cn>
23b89cbbe105 [Issue 575] New: wrong evaluation of (creal * 2 + 1i)
thomask
parents:
diff changeset
6 // @date@ 2006-11-19
1321
e6887749b811 cleaned up remaining puremagic @uri@s
thomask
parents: 1237
diff changeset
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=575
1237
23b89cbbe105 [Issue 575] New: wrong evaluation of (creal * 2 + 1i)
thomask
parents:
diff changeset
8 // @desc@ [Issue 575] New: wrong evaluation of (creal * 2 + 1i)
23b89cbbe105 [Issue 575] New: wrong evaluation of (creal * 2 + 1i)
thomask
parents:
diff changeset
9
23b89cbbe105 [Issue 575] New: wrong evaluation of (creal * 2 + 1i)
thomask
parents:
diff changeset
10 module dstress.compile.c.cdouble_11_C;
23b89cbbe105 [Issue 575] New: wrong evaluation of (creal * 2 + 1i)
thomask
parents:
diff changeset
11
23b89cbbe105 [Issue 575] New: wrong evaluation of (creal * 2 + 1i)
thomask
parents:
diff changeset
12 template foo(cdouble a){
23b89cbbe105 [Issue 575] New: wrong evaluation of (creal * 2 + 1i)
thomask
parents:
diff changeset
13 const cdouble foo = a * 2.0 + 1.0i;
23b89cbbe105 [Issue 575] New: wrong evaluation of (creal * 2 + 1i)
thomask
parents:
diff changeset
14 }
23b89cbbe105 [Issue 575] New: wrong evaluation of (creal * 2 + 1i)
thomask
parents:
diff changeset
15
23b89cbbe105 [Issue 575] New: wrong evaluation of (creal * 2 + 1i)
thomask
parents:
diff changeset
16 static assert(foo!(1.0 + 2.0i) == 2.0 + 5.0i);
23b89cbbe105 [Issue 575] New: wrong evaluation of (creal * 2 + 1i)
thomask
parents:
diff changeset
17