# HG changeset patch # User thomask # Date 1172489443 0 # Node ID 8862d9e3bd3cd03d2e1870108f6f1aba0971bbd2 # Parent f900501c0e18a6953e08b6a52517eb46549fcfbd [Issue 998] Crash in compile-time functions with pragma(msg,...) Tyler Knott 2007-02-22 http://d.puremagic.com/issues/show_bug.cgi?id=998 diff -r f900501c0e18 -r 8862d9e3bd3c run/p/pragma_msg_01_A.d --- /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 +// @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; +} + diff -r f900501c0e18 -r 8862d9e3bd3c run/p/pragma_msg_01_B.d --- /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 +// @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; +} + diff -r f900501c0e18 -r 8862d9e3bd3c run/p/pragma_msg_01_C.d --- /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 +// @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; +} +