annotate run/bug_cod2_4211_R.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 38ea1bb385b6
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 module dstress.run.bug_cod2_4211_R;
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
10
870
38ea1bb385b6 bit -> bool and __DSTRESS_TORTURE_BLOCK__ fixes
thomask
parents: 736
diff changeset
11 bool[1] a;
38ea1bb385b6 bit -> bool and __DSTRESS_TORTURE_BLOCK__ fixes
thomask
parents: 736
diff changeset
12 bool[1] b;
492
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
13
870
38ea1bb385b6 bit -> bool and __DSTRESS_TORTURE_BLOCK__ fixes
thomask
parents: 736
diff changeset
14 bool[] concat() {
492
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
15 return a~b;
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
16 }
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
17
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
18 int main(){
870
38ea1bb385b6 bit -> bool and __DSTRESS_TORTURE_BLOCK__ fixes
thomask
parents: 736
diff changeset
19 a[]=false;
38ea1bb385b6 bit -> bool and __DSTRESS_TORTURE_BLOCK__ fixes
thomask
parents: 736
diff changeset
20 b[]=true;
492
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
21
870
38ea1bb385b6 bit -> bool and __DSTRESS_TORTURE_BLOCK__ fixes
thomask
parents: 736
diff changeset
22 bool[] arr=concat();
492
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
23
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
24 assert(arr.length==2);
870
38ea1bb385b6 bit -> bool and __DSTRESS_TORTURE_BLOCK__ fixes
thomask
parents: 736
diff changeset
25 assert(!arr[0]);
38ea1bb385b6 bit -> bool and __DSTRESS_TORTURE_BLOCK__ fixes
thomask
parents: 736
diff changeset
26 assert(arr[1]);
492
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
27
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
28 return 0;
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
29 }
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
30