Mercurial > projects > dstress
annotate run/n/nested_class_02_B.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 | 9dcac8d4e97f |
children |
rev | line source |
---|---|
580 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 module dstress.run.n.nested_class_02_B; | |
6 | |
7 void func(){ | |
8 int m; | |
9 | |
10 class Inner{ | |
11 void test(int i){ | |
1091 | 12 m=i; |
580 | 13 } |
14 } | |
15 | |
16 Inner inner = new Inner(); | |
17 assert(m==0); | |
18 inner.test(1); | |
19 assert(m==1); | |
20 } | |
21 | |
22 int main(){ | |
23 func(); | |
24 return 0; | |
25 } |