Mercurial > projects > dstress
annotate run/b/bug_cgcs_353_O2.d @ 1489:b8c0195059d9
changed nntp: URLs to http: URLs
author | thomask |
---|---|
date | Mon, 09 Apr 2007 13:47:01 +0000 |
parents | a98a62f7a33e |
children |
rev | line source |
---|---|
588 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Florian Sonnenberger <nairolf@online.de> | |
6 // @date@ 2005-06-20 | |
1489 | 7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=4377 |
588 | 8 // @desc@ internal error: ..\ztc\cgcs.c 353 |
9 | |
10 module dstress.run.b.bug_cgcs_353_O2; | |
11 | |
12 int main(){ | |
13 real[] arr; | |
14 arr.length=1; | |
15 arr[0]=2.0; | |
16 | |
17 arr = arr ~ 1.0; | |
18 | |
19 assert(arr[0]==2.0); | |
20 assert(arr[1]==1.0); | |
21 | |
22 return 0; | |
23 } |