changeset 1569:4e9fdbb1bece

[Issue 1593] ICE compiler crash empty return statement in function <s.d.hammett@googlemail.com> 2007-10-07 http://d.puremagic.com/issues/show_bug.cgi?id=1593
author thomask
date Fri, 19 Oct 2007 17:08:50 +0000
parents afe5f4bc8f9c
children 43123cf43146
files nocompile/r/return_11_A.d nocompile/r/return_11_B.d nocompile/r/return_11_C.d nocompile/r/return_11_D.d nocompile/r/return_11_E.d nocompile/r/return_11_F.d nocompile/r/return_11_G.d
diffstat 7 files changed, 144 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/r/return_11_A.d	Fri Oct 19 17:08:50 2007 +0000
@@ -0,0 +1,21 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<s.d.hammett@googlemail.com>
+// @date@	2007-10-07
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=1593
+// @desc@	[Issue 1593] ICE compiler crash empty return statement in function
+
+// __DSTRESS_ELINE__ 18
+
+module dstress.nocompile.r.return_11_A;
+
+class S{
+}
+
+S foo() {
+	return;
+}
+
+static const S s = foo();
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/r/return_11_B.d	Fri Oct 19 17:08:50 2007 +0000
@@ -0,0 +1,21 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<s.d.hammett@googlemail.com>
+// @date@	2007-10-07
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=1593
+// @desc@	[Issue 1593] ICE compiler crash empty return statement in function
+
+// __DSTRESS_ELINE__ 18
+
+module dstress.nocompile.r.return_11_B;
+
+struct S{
+}
+
+S foo() {
+	return;
+}
+
+static const S s = foo();
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/r/return_11_C.d	Fri Oct 19 17:08:50 2007 +0000
@@ -0,0 +1,22 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<s.d.hammett@googlemail.com>
+// @date@	2007-10-07
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=1593
+// @desc@	[Issue 1593] ICE compiler crash empty return statement in function
+
+// __DSTRESS_ELINE__ 19
+
+module dstress.nocompile.r.return_11_C;
+
+union S{
+	int i;
+}
+
+S foo() {
+	return;
+}
+
+static const S s = foo();
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/r/return_11_D.d	Fri Oct 19 17:08:50 2007 +0000
@@ -0,0 +1,22 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<s.d.hammett@googlemail.com>
+// @date@	2007-10-07
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=1593
+// @desc@	[Issue 1593] ICE compiler crash empty return statement in function
+
+// __DSTRESS_ELINE__ 19
+
+module dstress.nocompile.r.return_11_D;
+
+enum S{
+	A, B
+}
+
+S foo() {
+	return;
+}
+
+static const S s = foo();
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/r/return_11_E.d	Fri Oct 19 17:08:50 2007 +0000
@@ -0,0 +1,20 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<s.d.hammett@googlemail.com>
+// @date@	2007-10-07
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=1593
+// @desc@	[Issue 1593] ICE compiler crash empty return statement in function
+
+// __DSTRESS_ELINE__ 17
+
+module dstress.nocompile.r.return_11_E;
+
+alias int S;
+
+S foo() {
+	return;
+}
+
+static const S s = foo();
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/r/return_11_F.d	Fri Oct 19 17:08:50 2007 +0000
@@ -0,0 +1,20 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<s.d.hammett@googlemail.com>
+// @date@	2007-10-07
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=1593
+// @desc@	[Issue 1593] ICE compiler crash empty return statement in function
+
+// __DSTRESS_ELINE__ 17
+
+module dstress.nocompile.r.return_11_F;
+
+typedef int S;
+
+S foo() {
+	return;
+}
+
+static const S s = foo();
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/r/return_11_G.d	Fri Oct 19 17:08:50 2007 +0000
@@ -0,0 +1,18 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<s.d.hammett@googlemail.com>
+// @date@	2007-10-07
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=1593
+// @desc@	[Issue 1593] ICE compiler crash empty return statement in function
+
+// __DSTRESS_ELINE__ 15
+
+module dstress.nocompile.r.return_11_G;
+
+int foo() {
+	return;
+}
+
+static const int s = foo();