Mercurial > projects > dstress
annotate run/b/bug_cgcs_353_B3.d @ 1489:b8c0195059d9
changed nntp: URLs to http: URLs
author | thomask |
---|---|
date | Mon, 09 Apr 2007 13:47:01 +0000 |
parents | 03b5056496f1 |
children |
rev | line source |
---|---|
647 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ James Dunne <james.jdunne@gmail.com> | |
6 // @date@ 2005-08-28 | |
1489 | 7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=4882 |
647 | 8 |
9 module dstress.run.b.bug_cgcs_353_B3; | |
10 | |
11 class Foo { | |
12 this(){ | |
13 } | |
14 } | |
15 | |
16 int main(){ | |
17 Foo[] foos; | |
18 | |
1089 | 19 if(foos.length != 0){ |
20 assert(0); | |
21 } | |
647 | 22 |
767
8bc1fdc33e0b
fixed typos in bug_cgcs_353_*3.d and html_line_ending_dos
thomask
parents:
647
diff
changeset
|
23 foos = new Foo() ~ foos[]; |
1089 | 24 |
25 if(foos.length != 1){ | |
26 assert(0); | |
27 } | |
28 | |
647 | 29 return 0; |
767
8bc1fdc33e0b
fixed typos in bug_cgcs_353_*3.d and html_line_ending_dos
thomask
parents:
647
diff
changeset
|
30 } |