Mercurial > projects > dstress
view run/a/array_initialization_34_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 | b3e16c86558e |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ <mariusmuja@gmail.com> // @date@ 2007-08-04 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1398 // @desc@ [Issue 1398] New: GDC doesn't generate correct code module dstress.run.a.array_initialization_34_D; class A{ A[] aa; void bar(){ aa = new A[10]; if(10 != aa.length){ assert(0); } } } int main(){ A a = new A; a.bar(); return 0; }