Mercurial > projects > dstress
view nocompile/n/nested_class_04_C.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 | 2c10afcfcf76 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ <jarrett.billingsley@gmail.com> // @date@ 2006-04-02 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=80 module dstress.run.n.nested_class_04_C; struct Outer{ int i; class Inner{ int x; this(){ x = i; } } Inner test(){ Inner o; void bug(){ o = new Inner(); } bug(); return o; } } int main(){ Outer* outer = new Outer(); outer.i = 1; Outer.Inner inner = outer.test(); outer.i = 2; if(inner.x != 1){ assert(0); } return 0; }