annotate run/reverse_02.d @ 1576:b3e16c86558e
[Issue 1398] New: GDC doesn't generate correct code
<mariusmuja@gmail.com>
2007-08-04
http://d.puremagic.com/issues/show_bug.cgi?id=1398
author |
thomask |
date |
Thu, 21 Feb 2008 15:20:08 +0000 |
parents |
38ea1bb385b6 |
children |
|
rev |
line source |
374
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 module dstress.run.reverse_02;
|
|
6
|
4
|
7 int main(){
|
870
|
8 bool a[3];
|
4
|
9 a[0]=true;
|
|
10 a[1]=false;
|
|
11 a[2]=false;
|
|
12
|
870
|
13 bool[] b=a.reverse;
|
4
|
14 assert(b.length==3);
|
|
15 assert(!b[0]);
|
|
16 assert(!b[1]);
|
|
17 assert(b[2]);
|
|
18 assert(a.length==3);
|
|
19 assert(!a[0]);
|
|
20 assert(!a[1]);
|
|
21 assert(a[2]);
|
|
22 return 0;
|
|
23 }
|