changeset 1132:0cd0e5eba91b

[Issue 334] New: Void Initializer ICE Oskar Linde <oskar.linde@gmail.com> 2006-09-08 news:bug-334-3@http.d.puremagic.com/issues/
author thomask
date Wed, 13 Sep 2006 22:27:27 +0000
parents 0e2d92ff0643
children 5ba2e63f2482
files run/t/typedef_18_A.d run/t/typedef_18_B.d run/t/typedef_18_C.d
diffstat 3 files changed, 65 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/t/typedef_18_A.d	Wed Sep 13 22:27:27 2006 +0000
@@ -0,0 +1,22 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Oskar Linde <oskar.linde@gmail.com>
+// @date@	2006-09-08
+// @uri@	news:bug-334-3@http.d.puremagic.com/issues/
+// @desc@	[Issue 334] New: Void Initializer ICE
+
+module dstress.run.t.typedef_18_A;
+
+typedef int MyInt = void;
+
+int main(){
+	MyInt[] a = new MyInt[10];
+
+	if(a.length != 10){
+		assert(0);
+	}
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/t/typedef_18_B.d	Wed Sep 13 22:27:27 2006 +0000
@@ -0,0 +1,21 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Oskar Linde <oskar.linde@gmail.com>
+// @date@	2006-09-08
+// @uri@	news:bug-334-3@http.d.puremagic.com/issues/
+// @desc@	[Issue 334] New: Void Initializer ICE
+
+module dstress.run.t.typedef_18_B;
+
+typedef int MyInt = void;
+MyInt[10] a;
+
+int main(){
+	if(a.length != 10){
+		assert(0);
+	}
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/t/typedef_18_C.d	Wed Sep 13 22:27:27 2006 +0000
@@ -0,0 +1,22 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Oskar Linde <oskar.linde@gmail.com>
+// @date@	2006-09-08
+// @uri@	news:bug-334-3@http.d.puremagic.com/issues/
+// @desc@	[Issue 334] New: Void Initializer ICE
+
+module dstress.run.t.typedef_18_C;
+
+typedef int MyInt = void;
+
+int main(char[][] args){
+	MyInt[] a = new MyInt[args.length];
+	
+	if(a.length != args.length){
+		assert(0);
+	}
+
+	return 0;
+}