changeset 1194:f40078ffa914

added test for _d_newarraymi
author thomask
date Sat, 21 Oct 2006 13:27:11 +0000
parents 656ba1fb1e20
children 9dbb7f24d251
files run/a/array_initialization_26_E.d
diffstat 1 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/a/array_initialization_26_E.d	Sat Oct 21 13:27:11 2006 +0000
@@ -0,0 +1,18 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+module dstress.run.a.array_initialization_26_E;
+
+int main(){
+	float[][] a = new float [][](1, 1);
+
+	if((a.length != 1) || (a[0].length != 1)){
+		assert(0);
+	}
+	if(a[0][0] != 0){
+		assert(0);
+	}
+
+	return 0;
+}