Mercurial > projects > dstress
annotate run/t/template_51_C.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 |
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_C; |
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(real v){ |
bb541d535405
[Issue 731] New: Positive and negative NaN in template arguments causes link conflict
thomask
parents:
diff
changeset
|
13 const real 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 real g = T!(real.nan) + T!(-real.nan); |
bb541d535405
[Issue 731] New: Positive and negative NaN in template arguments causes link conflict
thomask
parents:
diff
changeset
|
18 if(g != real.nan - real.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 |