annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1281
bb541d535405 [Issue 731] New: Positive and negative NaN in template arguments causes link conflict
thomask
parents:
diff changeset
1 // $HeadURL$
bb541d535405 [Issue 731] New: Positive and negative NaN in template arguments causes link conflict
thomask
parents:
diff changeset
2 // $Date$
bb541d535405 [Issue 731] New: Positive and negative NaN in template arguments causes link conflict
thomask
parents:
diff changeset
3 // $Author$
bb541d535405 [Issue 731] New: Positive and negative NaN in template arguments causes link conflict
thomask
parents:
diff changeset
4
bb541d535405 [Issue 731] New: Positive and negative NaN in template arguments causes link conflict
thomask
parents:
diff changeset
5 // @author@ David Friedman <dvdfrdmn@users.sf.net>
bb541d535405 [Issue 731] New: Positive and negative NaN in template arguments causes link conflict
thomask
parents:
diff changeset
6 // @date@ 2006-12-23
bb541d535405 [Issue 731] New: Positive and negative NaN in template arguments causes link conflict
thomask
parents:
diff changeset
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=731
bb541d535405 [Issue 731] New: Positive and negative NaN in template arguments causes link conflict
thomask
parents:
diff changeset
8 // @desc@ [Issue 731] New: Positive and negative NaN in template arguments causes link conflict
bb541d535405 [Issue 731] New: Positive and negative NaN in template arguments causes link conflict
thomask
parents:
diff changeset
9
bb541d535405 [Issue 731] New: Positive and negative NaN in template arguments causes link conflict
thomask
parents:
diff changeset
10 module dstress.run.t.template_51_D;
bb541d535405 [Issue 731] New: Positive and negative NaN in template arguments causes link conflict
thomask
parents:
diff changeset
11
bb541d535405 [Issue 731] New: Positive and negative NaN in template arguments causes link conflict
thomask
parents:
diff changeset
12 template T(idouble v){
bb541d535405 [Issue 731] New: Positive and negative NaN in template arguments causes link conflict
thomask
parents:
diff changeset
13 const idouble T = v;
bb541d535405 [Issue 731] New: Positive and negative NaN in template arguments causes link conflict
thomask
parents:
diff changeset
14 }
bb541d535405 [Issue 731] New: Positive and negative NaN in template arguments causes link conflict
thomask
parents:
diff changeset
15
bb541d535405 [Issue 731] New: Positive and negative NaN in template arguments causes link conflict
thomask
parents:
diff changeset
16 int main(){
bb541d535405 [Issue 731] New: Positive and negative NaN in template arguments causes link conflict
thomask
parents:
diff changeset
17 idouble g = T!(idouble.nan) + T!(-idouble.nan);
bb541d535405 [Issue 731] New: Positive and negative NaN in template arguments causes link conflict
thomask
parents:
diff changeset
18 if(g != idouble.nan - idouble.nan){
bb541d535405 [Issue 731] New: Positive and negative NaN in template arguments causes link conflict
thomask
parents:
diff changeset
19 assert(0);
bb541d535405 [Issue 731] New: Positive and negative NaN in template arguments causes link conflict
thomask
parents:
diff changeset
20 }
bb541d535405 [Issue 731] New: Positive and negative NaN in template arguments causes link conflict
thomask
parents:
diff changeset
21
bb541d535405 [Issue 731] New: Positive and negative NaN in template arguments causes link conflict
thomask
parents:
diff changeset
22 return 0;
bb541d535405 [Issue 731] New: Positive and negative NaN in template arguments causes link conflict
thomask
parents:
diff changeset
23 }
bb541d535405 [Issue 731] New: Positive and negative NaN in template arguments causes link conflict
thomask
parents:
diff changeset
24
bb541d535405 [Issue 731] New: Positive and negative NaN in template arguments causes link conflict
thomask
parents:
diff changeset
25