Mercurial > projects > dstress
comparison run/t/template_51_D.d @ 1281:bb541d535405
[Issue 731] New: Positive and negative NaN in template arguments causes link conflict
David Friedman <dvdfrdmn@users.sf.net>
2006-12-23
http://d.puremagic.com/issues/show_bug.cgi?id=731
author | thomask |
---|---|
date | Tue, 26 Dec 2006 10:46:38 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1280:a0be8cc7caa3 | 1281:bb541d535405 |
---|---|
1 // $HeadURL$ | |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ David Friedman <dvdfrdmn@users.sf.net> | |
6 // @date@ 2006-12-23 | |
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=731 | |
8 // @desc@ [Issue 731] New: Positive and negative NaN in template arguments causes link conflict | |
9 | |
10 module dstress.run.t.template_51_D; | |
11 | |
12 template T(idouble v){ | |
13 const idouble T = v; | |
14 } | |
15 | |
16 int main(){ | |
17 idouble g = T!(idouble.nan) + T!(-idouble.nan); | |
18 if(g != idouble.nan - idouble.nan){ | |
19 assert(0); | |
20 } | |
21 | |
22 return 0; | |
23 } | |
24 | |
25 |