changeset 1511:fcafb2c9da5f

[Issue 1138] ICE when tuple template gets indexed Manuel K?nig <manuelk89@gmx.net> 2007-04-13 http://d.puremagic.com/issues/show_bug.cgi?id=1138
author thomask
date Mon, 23 Apr 2007 18:08:39 +0000
parents f0259cabdf78
children b171e38c078b
files run/t/tuple_22_A.d run/t/tuple_22_B.d
diffstat 2 files changed, 44 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/t/tuple_22_A.d	Mon Apr 23 18:08:39 2007 +0000
@@ -0,0 +1,22 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Manuel König <manuelk89@gmx.net>
+// @date@	2007-04-13
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=1138
+// @desc@	[Issue 1138] ICE when tuple template gets indexed
+
+module dstress.run.t.tuple_22_A;
+
+template Tuple(T...){
+	alias T Tuple;
+}
+
+void dummy(...){
+}
+
+int main(){
+	dummy(Tuple!(1, 2, 3));
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/t/tuple_22_B.d	Mon Apr 23 18:08:39 2007 +0000
@@ -0,0 +1,22 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Manuel König <manuelk89@gmx.net>
+// @date@	2007-04-13
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=1138
+// @desc@	[Issue 1138] ICE when tuple template gets indexed
+
+module dstress.run.t.tuple_22_B;
+
+template Tuple(T...){
+	alias T items;
+}
+
+void dummy(...){
+}
+
+int main(){
+	dummy(Tuple!(1, 2, 3).items);
+	return 0;
+}