Mercurial > projects > dstress
view run/t/template_51_G.d @ 1519:f71bd33bb278
updated to DMD-1.013
author | thomask |
---|---|
date | Fri, 27 Apr 2007 17:22:49 +0000 |
parents | bb541d535405 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ David Friedman <dvdfrdmn@users.sf.net> // @date@ 2006-12-23 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=731 // @desc@ [Issue 731] New: Positive and negative NaN in template arguments causes link conflict module dstress.run.t.template_51_G; template T(cdouble v){ const cdouble T = v; } int main(){ cdouble g = T!(cdouble.nan) + T!(-cdouble.nan); if(g != cdouble.nan - cdouble.nan){ assert(0); } return 0; }