Mercurial > projects > dstress
annotate run/bug_cod2_4211_N.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 | 1e6afb94ce6d |
children |
rev | line source |
---|---|
492 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ MicroWizard <MicroWizard_member@pathlink.com> | |
6 // @date@ 2005-04-27 | |
7 // @uri@ news:d4or18$1th1$1@digitaldaemon.com | |
8 | |
9 module dstress.run.bug_cod2_4211_N; | |
10 | |
11 double[1] a; | |
12 double[1] b; | |
13 | |
14 double[] concat() { | |
15 return a~b; | |
16 } | |
17 | |
18 int main(){ | |
19 a[]=1.0; | |
20 b[]=3.0; | |
21 | |
22 double[] arr=concat(); | |
23 | |
24 assert(arr.length==2); | |
25 assert(arr[0]==1.0); | |
26 assert(arr[1]==3.0); | |
27 | |
28 return 0; | |
29 } | |
30 |