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