changeset 1364:8862d9e3bd3c

[Issue 998] Crash in compile-time functions with pragma(msg,...) Tyler Knott <tknott@gmail.com> 2007-02-22 http://d.puremagic.com/issues/show_bug.cgi?id=998
author thomask
date Mon, 26 Feb 2007 11:30:43 +0000
parents f900501c0e18
children 3da73e4504c4
files run/p/pragma_msg_01_A.d run/p/pragma_msg_01_B.d run/p/pragma_msg_01_C.d
diffstat 3 files changed, 62 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/p/pragma_msg_01_A.d	Mon Feb 26 11:30:43 2007 +0000
@@ -0,0 +1,21 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Tyler Knott <tknott@gmail.com>
+// @date@	2007-02-22
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=998
+// @desc@	[Issue 998] Crash in compile-time functions with pragma(msg,...)
+
+module dstress.run.p.pragma_msg_01_A;
+
+int test(){
+	pragma(msg, "Crash!");
+	return 2;
+}
+
+int main(){
+	auto x = test();
+	return 0;
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/p/pragma_msg_01_B.d	Mon Feb 26 11:30:43 2007 +0000
@@ -0,0 +1,21 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Tyler Knott <tknott@gmail.com>
+// @date@	2007-02-22
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=998
+// @desc@	[Issue 998] Crash in compile-time functions with pragma(msg,...)
+
+module dstress.run.p.pragma_msg_01_B;
+
+int test(){
+	pragma(msg, "Crash!");
+	return 2;
+}
+
+int main(){
+	static x = test();
+	return 0;
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/p/pragma_msg_01_C.d	Mon Feb 26 11:30:43 2007 +0000
@@ -0,0 +1,20 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Tyler Knott <tknott@gmail.com>
+// @date@	2007-02-22
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=998
+// @desc@	[Issue 998] Crash in compile-time functions with pragma(msg,...)
+
+module dstress.run.p.pragma_msg_01_C;
+
+int test(){
+	return 2;
+}
+
+int main(){
+	static x = test();
+	return 0;
+}
+