annotate run/s/scope_06_C.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 c2931e457792
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
897
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
1 // $HeadURL$
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
2 // $Date$
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
3 // $Author$
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
4
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
5 module dstress.run.s.scope_06_C;
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
6
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
7 int main(){
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
8 int a;
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
9 int b;
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
10
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
11 {
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
12 scope(success){
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
13 if(a != 10){
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
14 assert(0);
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
15 }
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
16
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
17 if(b != 6){
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
18 assert(0);
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
19 }
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
20
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
21 a++;
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
22 }
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
23
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
24 if(b!=0){
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
25 assert(0);
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
26 }else{
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
27 b = 5;
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
28 }
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
29
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
30 scope(success){
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
31 if(a != 10){
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
32 assert(0);
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
33 }
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
34
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
35 if(b != 5){
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
36 assert(0);
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
37 }
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
38
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
39 b++;
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
40 }
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
41
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
42
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
43 if(a!=0){
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
44 assert(0);
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
45 }else{
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
46 a = 10;
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
47 }
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
48 }
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
49
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
50 if(a != 11){
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
51 assert(0);
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
52 }
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
53
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
54 if(b != 6){
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
55 assert(0);
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
56 }
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
57
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
58 return 0;
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
59
c2931e457792 updated tests to DMD-0.149
thomask
parents:
diff changeset
60 }