# HG changeset patch # User thomask # Date 1192813730 0 # Node ID 4e9fdbb1bece9fed931d2ea2611d6a57cb15db66 # Parent afe5f4bc8f9c098c042af85e64329edf1836ec4b [Issue 1593] ICE compiler crash empty return statement in function 2007-10-07 http://d.puremagic.com/issues/show_bug.cgi?id=1593 diff -r afe5f4bc8f9c -r 4e9fdbb1bece nocompile/r/return_11_A.d --- /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@ +// @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(); diff -r afe5f4bc8f9c -r 4e9fdbb1bece nocompile/r/return_11_B.d --- /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@ +// @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(); diff -r afe5f4bc8f9c -r 4e9fdbb1bece nocompile/r/return_11_C.d --- /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@ +// @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(); diff -r afe5f4bc8f9c -r 4e9fdbb1bece nocompile/r/return_11_D.d --- /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@ +// @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(); diff -r afe5f4bc8f9c -r 4e9fdbb1bece nocompile/r/return_11_E.d --- /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@ +// @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(); diff -r afe5f4bc8f9c -r 4e9fdbb1bece nocompile/r/return_11_F.d --- /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@ +// @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(); diff -r afe5f4bc8f9c -r 4e9fdbb1bece nocompile/r/return_11_G.d --- /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@ +// @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();