Mercurial > projects > dstress
annotate run/a/array_initialization_34_E.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 |
rev | line source |
---|---|
1576 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ <mariusmuja@gmail.com> | |
6 // @date@ 2007-08-04 | |
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1398 | |
8 // @desc@ [Issue 1398] New: GDC doesn't generate correct code | |
9 | |
10 module dstress.run.a.array_initialization_34_E; | |
11 | |
12 A[] ab; | |
13 | |
14 class A{ | |
15 A[] aa; | |
16 | |
17 void bar(){ | |
18 aa = new A[10]; | |
19 if(10 != aa.length){ | |
20 assert(0); | |
21 } | |
22 } | |
23 } | |
24 | |
25 int main(){ | |
26 A a = new A; | |
27 a.bar(); | |
28 return 0; | |
29 } |