Mercurial > projects > dstress
annotate run/slice_07.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 | 38ea1bb385b6 |
children |
rev | line source |
---|---|
374 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 module dstress.run.slice_07; | |
6 | |
4 | 7 int main(){ |
870 | 8 bool[] a; |
4 | 9 a.length=2; |
10 a[] = true; | |
11 assert(a[0]); | |
12 assert(a[1]); | |
13 | |
870 | 14 bool[] b; |
4 | 15 b.length=2; |
16 assert(!b[0]); | |
17 assert(!b[1]); | |
18 | |
19 b[0..1] = a[0..1]; | |
20 assert(b[0]); | |
21 assert(!b[1]); | |
22 | |
23 return 0; | |
24 } |