Mercurial > projects > dstress
annotate undefined/array_initialization_15.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 | 561a9ae8208d |
children |
rev | line source |
---|---|
759 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Andrew Fedoniouk <news@terrainformatica.com> | |
6 // @date@ 2005-05-13 | |
7 // @uri@ news:d63bn0$11v$1@digitaldaemon.com | |
8 | |
9 module dstress.run.a.array_initialization_15; | |
10 | |
11 struct S{ | |
12 int i=1; | |
13 } | |
14 | |
15 static S[3] s= [ 1: { 2 } ]; | |
16 | |
17 int main(){ | |
18 assert(s[0].i==1); | |
19 assert(s[1].i==2); | |
20 assert(s[2].i==1); | |
21 return 0; | |
22 } |