annotate run/o/opOrOr_01_A.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 b8c0195059d9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
796
1f4e7734a7ee Don Clugston <dac@nospam.com.au>
thomask
parents:
diff changeset
1 // $HeadURL$
1f4e7734a7ee Don Clugston <dac@nospam.com.au>
thomask
parents:
diff changeset
2 // $Date$
1f4e7734a7ee Don Clugston <dac@nospam.com.au>
thomask
parents:
diff changeset
3 // $Author$
1f4e7734a7ee Don Clugston <dac@nospam.com.au>
thomask
parents:
diff changeset
4
1f4e7734a7ee Don Clugston <dac@nospam.com.au>
thomask
parents:
diff changeset
5 // @author@ Don Clugston <dac@nospam.com.au>
1f4e7734a7ee Don Clugston <dac@nospam.com.au>
thomask
parents:
diff changeset
6 // @date@ 2006-01-20
1489
b8c0195059d9 changed nntp: URLs to http: URLs
thomask
parents: 796
diff changeset
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=6049
796
1f4e7734a7ee Don Clugston <dac@nospam.com.au>
thomask
parents:
diff changeset
8
1f4e7734a7ee Don Clugston <dac@nospam.com.au>
thomask
parents:
diff changeset
9 module dstress.run.o.opOrOr_01_A;
1f4e7734a7ee Don Clugston <dac@nospam.com.au>
thomask
parents:
diff changeset
10
1f4e7734a7ee Don Clugston <dac@nospam.com.au>
thomask
parents:
diff changeset
11 int main(){
1f4e7734a7ee Don Clugston <dac@nospam.com.au>
thomask
parents:
diff changeset
12 const int a = 1;
1f4e7734a7ee Don Clugston <dac@nospam.com.au>
thomask
parents:
diff changeset
13
1f4e7734a7ee Don Clugston <dac@nospam.com.au>
thomask
parents:
diff changeset
14 static if(a < 0 || 10 < a){
1f4e7734a7ee Don Clugston <dac@nospam.com.au>
thomask
parents:
diff changeset
15 static assert(0);
1f4e7734a7ee Don Clugston <dac@nospam.com.au>
thomask
parents:
diff changeset
16 }else{
1f4e7734a7ee Don Clugston <dac@nospam.com.au>
thomask
parents:
diff changeset
17 static bool A = true;
1f4e7734a7ee Don Clugston <dac@nospam.com.au>
thomask
parents:
diff changeset
18 }
1f4e7734a7ee Don Clugston <dac@nospam.com.au>
thomask
parents:
diff changeset
19
1f4e7734a7ee Don Clugston <dac@nospam.com.au>
thomask
parents:
diff changeset
20 const int b = -1;
1f4e7734a7ee Don Clugston <dac@nospam.com.au>
thomask
parents:
diff changeset
21 static if(b < 0 || 10 < b){
1f4e7734a7ee Don Clugston <dac@nospam.com.au>
thomask
parents:
diff changeset
22 static bool B = true;
1f4e7734a7ee Don Clugston <dac@nospam.com.au>
thomask
parents:
diff changeset
23 }else{
1f4e7734a7ee Don Clugston <dac@nospam.com.au>
thomask
parents:
diff changeset
24 static assert(0);
1f4e7734a7ee Don Clugston <dac@nospam.com.au>
thomask
parents:
diff changeset
25 }
1f4e7734a7ee Don Clugston <dac@nospam.com.au>
thomask
parents:
diff changeset
26
1f4e7734a7ee Don Clugston <dac@nospam.com.au>
thomask
parents:
diff changeset
27 const int c = 11;
1f4e7734a7ee Don Clugston <dac@nospam.com.au>
thomask
parents:
diff changeset
28 static if(c < 0 || 10 < c){
1f4e7734a7ee Don Clugston <dac@nospam.com.au>
thomask
parents:
diff changeset
29 static bool C = true;
1f4e7734a7ee Don Clugston <dac@nospam.com.au>
thomask
parents:
diff changeset
30 }else{
1f4e7734a7ee Don Clugston <dac@nospam.com.au>
thomask
parents:
diff changeset
31 static assert(0);
1f4e7734a7ee Don Clugston <dac@nospam.com.au>
thomask
parents:
diff changeset
32 }
1f4e7734a7ee Don Clugston <dac@nospam.com.au>
thomask
parents:
diff changeset
33
1f4e7734a7ee Don Clugston <dac@nospam.com.au>
thomask
parents:
diff changeset
34 if(A && B && C){
1f4e7734a7ee Don Clugston <dac@nospam.com.au>
thomask
parents:
diff changeset
35 return 0;
1f4e7734a7ee Don Clugston <dac@nospam.com.au>
thomask
parents:
diff changeset
36 }
1f4e7734a7ee Don Clugston <dac@nospam.com.au>
thomask
parents:
diff changeset
37 }