Mercurial > projects > dstress
view compile/c/cfloat_11_C.d @ 1597:8b9d4d2f925a
Fix typos in complex tests. See D bug 614.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 09 Sep 2008 16:53:58 +0200 |
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.compile.c.cfloat_11_C; template foo(cfloat a){ const cfloat foo = a * 2.0f + 1.0fi; } static assert(foo!(1.0f + 2.0fi) == 2.0f + 5.0fi);