changeset 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 78025fa64bdf
children a3d84fdbfd53
files run/bug_cgcod_1489_D.d
diffstat 1 files changed, 30 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/bug_cgcod_1489_D.d	Mon Apr 25 05:26:43 2005 +0000
@@ -0,0 +1,30 @@
+// $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_D;
+
+class S {
+	int a, b, c;
+}
+    
+S[] x;
+        
+S bug(S s){
+	x.length = 9;
+	return x[0] = s;
+}
+
+int main(){
+	S var=new S();
+	var.a=2;
+
+	assert(var==bug(var));
+
+	return 0;
+}
+