Mercurial > projects > dstress
annotate run/bug_cod2_4211_L.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_L; | |
10 | |
11 cdouble[1] a; | |
12 cdouble[1] b; | |
13 | |
14 cdouble[] concat() { | |
15 return a~b; | |
16 } | |
17 | |
18 int main(){ | |
19 a[]=0.5+1.0i; | |
20 b[]=0.5+3.0i; | |
21 | |
22 cdouble[] arr=concat(); | |
23 | |
24 assert(arr.length==2); | |
25 assert(arr[0]==0.5+1.0i); | |
26 assert(arr[1]==0.5+3.0i); | |
27 | |
28 return 0; | |
29 } | |
30 |