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