Mercurial > projects > dstress
view run/n/nested_class_03_A.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 | b17e092dd992 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ John C <johnch_atms@hotmail.com> // @date@ 2005-06-09 // @uri@ news:d88vta$vak$1@digitaldaemon.com module dstress.run.n.nested_class_03_A; interface Inner{ int value(); } class Outer{ int x; Inner test(){ return new class Inner { int y; this(){ y=x; } int value(){ return y; } }; } } int main(){ Outer o = new Outer(); o.x=2; assert(o.test().value() == o.x); return 0; }