Mercurial > projects > dstress
annotate run/bug_cgcod_1489_D.d @ 479:e4266d2a5507
cgcod.c 1489
Kevin Bealer <Kevin_member@pathlink.com>
2005-04-24
news:d4fgcc$6ob$1@digitaldaemon.com
author | thomask |
---|---|
date | Mon, 25 Apr 2005 05:26:43 +0000 |
parents | run/bug_cgcod_1489_A.d@78025fa64bdf |
children | b8c0195059d9 |
rev | line source |
---|---|
478 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Kevin Bealer <Kevin_member@pathlink.com> | |
6 // @date@ 2005-04-24 | |
7 // @uri@ news:d4fgcc$6ob$1@digitaldaemon.com | |
8 | |
479 | 9 module dstress.run.bug_cgcod_1489_D; |
478 | 10 |
479 | 11 class S { |
478 | 12 int a, b, c; |
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(){ | |
479 | 23 S var=new S(); |
478 | 24 var.a=2; |
25 | |
26 assert(var==bug(var)); | |
27 | |
28 return 0; | |
29 } | |
30 |