Mercurial > projects > dstress
annotate run/b/bug_cgcs_353_L3.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_L3; | |
10 | |
11 enum Foo{ | |
12 DUMMY | |
13 } | |
14 | |
15 int main(){ | |
16 Foo*[] foos; | |
17 | |
18 assert(foos.length==0); | |
19 | |
767
8bc1fdc33e0b
fixed typos in bug_cgcs_353_*3.d and html_line_ending_dos
thomask
parents:
647
diff
changeset
|
20 foos = foos[] ~ new Foo(); |
1089 | 21 |
22 if(foos.length != 1){ | |
23 assert(0); | |
24 } | |
25 | |
647 | 26 return 0; |
767
8bc1fdc33e0b
fixed typos in bug_cgcs_353_*3.d and html_line_ending_dos
thomask
parents:
647
diff
changeset
|
27 } |