Mercurial > projects > dstress
annotate run/t/this_11_D.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 |
rev | line source |
---|---|
897 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 module dstress.run.t.this_11_D; | |
6 | |
7 int status; | |
8 | |
9 class A{ | |
10 this(){ | |
11 if(status != 1){ | |
12 assert(0); | |
13 } | |
14 status++; | |
15 } | |
16 } | |
17 | |
18 class B : A{ | |
19 this(){ | |
20 if(status != 2){ | |
21 assert(0); | |
22 } | |
23 status++; | |
24 } | |
25 } | |
26 | |
27 class C : B{ | |
28 } | |
29 | |
30 int main(){ | |
31 status = 1; | |
32 | |
33 C c = new C(); | |
34 | |
35 if(status != 3){ | |
36 assert(0); | |
37 } | |
38 | |
39 return 0; | |
40 } |