changeset 947:4b7db0846641

<clugdbug@yahoo.com.au> 2006-04-04 news:bug-84-3@http.d.puremagic.com/bugzilla/
author thomask
date Thu, 06 Apr 2006 04:58:11 +0000
parents 18bc025c4445
children a3716859972b
files run/b/bug_type_308_A.d
diffstat 1 files changed, 46 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/b/bug_type_308_A.d	Thu Apr 06 04:58:11 2006 +0000
@@ -0,0 +1,46 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<clugdbug@yahoo.com.au>
+// @date@	2006-04-04
+// @uri@	news:bug-84-3@http.d.puremagic.com/bugzilla/
+
+module dstress.run.b.bug_type_308_A;
+
+int main() {   
+	int [3][3] x;
+	x[1][1 .. 3] = 1;
+
+	if(x[0][0] != 0){
+		assert(0);
+	}
+	if(x[0][1] != 0){
+		assert(0);
+	}
+	if(x[0][2] != 0){
+		assert(0);
+	}
+
+	if(x[1][0] != 0){
+		assert(0);
+	}
+	if(x[1][1] != 1){
+		assert(0);
+	}
+	if(x[1][2] != 1){
+		assert(0);
+	}
+
+	if(x[2][0] != 0){
+		assert(0);
+	}
+	if(x[2][1] != 0){
+		assert(0);
+	}
+	if(x[2][2] != 0){
+		assert(0);
+	}
+
+	return 0;
+}