annotate run/bug_cgcs_353_Q.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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
492
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
1 // $HeadURL$
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
2 // $Date$
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
3 // $Author$
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
4
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
5 // @author@ MicroWizard <MicroWizard_member@pathlink.com>
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
6 // @date@ 2005-04-27
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
7 // @uri@ news:d4or18$1th1$1@digitaldaemon.com
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
8
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
9
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
10 module dstress.run.bug_cgcs_353_Q;
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
11
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
12 creal[1] a;
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
13 creal[1] b;
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
14
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
15 creal[] concat() {
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
16 return a~b;
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
17 }
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
18
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
19 int main(){
958
80e1b85295b3 DMD-0.154 review
thomask
parents: 492
diff changeset
20 a[] = 0.5L + 1.0Li;
80e1b85295b3 DMD-0.154 review
thomask
parents: 492
diff changeset
21 b[] = 0.5L + 3.0Li;
492
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
22
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
23 creal[] arr=concat();
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
24
958
80e1b85295b3 DMD-0.154 review
thomask
parents: 492
diff changeset
25 if(arr.length != 2){
80e1b85295b3 DMD-0.154 review
thomask
parents: 492
diff changeset
26 assert(0);
80e1b85295b3 DMD-0.154 review
thomask
parents: 492
diff changeset
27 }
80e1b85295b3 DMD-0.154 review
thomask
parents: 492
diff changeset
28
80e1b85295b3 DMD-0.154 review
thomask
parents: 492
diff changeset
29 if(arr[0] != 0.5L + 1.0Li){
80e1b85295b3 DMD-0.154 review
thomask
parents: 492
diff changeset
30 assert(0);
80e1b85295b3 DMD-0.154 review
thomask
parents: 492
diff changeset
31 }
80e1b85295b3 DMD-0.154 review
thomask
parents: 492
diff changeset
32
80e1b85295b3 DMD-0.154 review
thomask
parents: 492
diff changeset
33 if(arr[1] != 0.5L + 3.0Li){
80e1b85295b3 DMD-0.154 review
thomask
parents: 492
diff changeset
34 assert(0);
80e1b85295b3 DMD-0.154 review
thomask
parents: 492
diff changeset
35 }
492
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
36
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
37 return 0;
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
38 }
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
39