Mercurial > projects > dstress
annotate run/ptr_01.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 | 1a77f6d93b45 |
children |
rev | line source |
---|---|
168 | 1 // $HeadURL$ |
2 // $Date$ | |
199 | 3 // $Author$ |
168 | 4 |
5 module dstress.run.ptr_01; | |
6 | |
7 int main(){ | |
8 Object[3] array; | |
9 Object a = new Object(); | |
10 Object b = new Object(); | |
11 Object c = new Object(); | |
12 | |
13 array[1]=b; | |
14 array[2]=c; | |
15 array[0]=a; | |
16 | |
17 assert(*array.ptr == a); | |
18 | |
19 return 0; | |
20 } |