annotate run/t/template_51_C.d @ 1630:d0efa3ae5522 default tip

run/mini/naked_asm5: New x86_64 ABI passes the arguments in reverse order.
author David Nadlinger <code@klickverbot.at>
date Sat, 23 Apr 2011 22:57:32 +0200
parents bb541d535405
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_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