Mercurial > projects > dstress
annotate run/a/array_initialization_23_A.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 | 33178712ec71 |
children |
rev | line source |
---|---|
857 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Anders F Börklund <afb@algonet.se> | |
6 // @date@ 2006-02-19 | |
7 // @uri@ news:dt8eo8$5ol$1@digitaldaemon.com | |
8 | |
9 module dstress.run.a.array_initialization_23_A; | |
10 | |
11 int main(){ | |
12 float[] a; | |
13 a.length = 1; | |
14 | |
15 if(a[0] <>= 0.0f){ | |
16 assert(0); | |
17 } | |
18 | |
19 a[0] = 2.1f; | |
20 | |
21 a.length = 2; | |
22 | |
23 if(a[0] != 2.1f){ | |
24 assert(0); | |
25 } | |
26 if(a[1] <>= 0.0f){ | |
27 assert(0); | |
28 } | |
29 | |
30 return 0; | |
31 } | |
32 |