Mercurial > projects > dstress
annotate run/a/array_initialization_34_B.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_B; | |
11 | |
12 class B{ | |
13 A ab; | |
14 } | |
15 | |
16 class A{ | |
17 A[] aa; | |
18 | |
19 void bar(){ | |
20 aa = new A[10]; | |
21 if(10 != aa.length){ | |
22 assert(0); | |
23 } | |
24 } | |
25 } | |
26 | |
27 int main(){ | |
28 A a = new A; | |
29 a.bar(); | |
30 return 0; | |
31 } |