Mercurial > projects > dstress
annotate run/slice_07.d @ 1599:d37b19f7e8bb
Move run/c/case_01 to nocompile.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 09 Sep 2008 17:28:31 +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 } |