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