Mercurial > projects > dstress
view run/bug_cgcod_1489_C.d @ 1330:f3f715978184
Georg Wrede <georg@iki.fi>
2007-01-07
mail:45A120F5.1050108@iki.fi
author | thomask |
---|---|
date | Sat, 13 Jan 2007 10:33:49 +0000 |
parents | 78025fa64bdf |
children | b8c0195059d9 |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Kevin Bealer <Kevin_member@pathlink.com> // @date@ 2005-04-24 // @uri@ news:d4fgcc$6ob$1@digitaldaemon.com module dstress.run.bug_cgcod_1489_C; struct S { int a, b, c; } S[] x; S bug(S s){ x.length = 9; x[0] = s; return x[0]; } int main(){ S var; var.a=2; assert(var==bug(var)); return 0; }