Mercurial > projects > dstress
view 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 |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ module dstress.run.n.nested_class_01_B; class Outer{ int value; Inner inner; this(int i){ inner = new Inner(); value = i; } class Inner{ void test(int i){ value=i; } } } int main(){ Outer o = new Outer(3); assert(o.value == 3); o.inner.test(2); assert(o.value == 2); return 0; }