Mercurial > projects > dstress
annotate run/bug_cgcod_1489_B.d @ 1489:b8c0195059d9
changed nntp: URLs to http: URLs
author | thomask |
---|---|
date | Mon, 09 Apr 2007 13:47:01 +0000 |
parents | 78025fa64bdf |
children | ec5e144583ea |
rev | line source |
---|---|
478 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Kevin Bealer <Kevin_member@pathlink.com> | |
6 // @date@ 2005-04-24 | |
1489 | 7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=3800 |
478 | 8 |
9 module dstress.run.bug_cgcod_1489_B; | |
10 | |
11 struct S { | |
12 int a, b; | |
13 } | |
14 | |
15 S[] x; | |
16 | |
17 S bug(S s){ | |
18 x.length = 9; | |
19 return x[0] = s; | |
20 } | |
21 | |
22 int main(){ | |
23 S var; | |
24 var.a=2; | |
25 | |
26 assert(var==bug(var)); | |
27 | |
28 return 0; | |
29 } | |
30 |