Mercurial > projects > dstress
view run/f/forward_reference_19_D.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 | e489e020a55d |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ <vlasov@scatt.com> // @date@ 2007-03-12 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1058 // @desc@ [Issue 1058] DMD hangs with 100% CPU - member function returning forward-referenced struct before constructor module dstress.run.f.forward_reference_19_D; struct B{ int dummy; } class A{ B x; this(){ } B b(){ return x; } } int main(){ A a = new A(); B b; b.dummy = 0x12EF34AB; a.x = b; if(0x12EF34AB != a.b().dummy){ assert(0); } return 0; }