Mercurial > projects > dstress
view run/c/cdouble_11_A.d @ 1489:b8c0195059d9
changed nntp: URLs to http: URLs
author | thomask |
---|---|
date | Mon, 09 Apr 2007 13:47:01 +0000 |
parents | e6887749b811 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Thomas Kühne <thomas-doop@kuehne.cn> // @date@ 2006-11-19 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=575 // @desc@ [Issue 575] New: wrong evaluation of (creal * 2 + 1i) module dstress.run.c.cdouble_11_A; cdouble foo(cdouble a){ return a * 2.0 + 1.0i; } int main(){ if(foo(1.0 + 2.0i) != 2.0 + 5.0i){ assert(0); } return 0; }