Mercurial > projects > dstress
view run/t/template_51_B.d @ 1619:bebc7472a832
Fix #7.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 07 Nov 2009 18:55:30 +0100 |
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_B; template T(float v){ const float T = v; } int main(){ float g = T!(float.nan) + T!(-float.nan); if(g != float.nan - float.nan){ assert(0); } return 0; }