Mercurial > projects > dstress
diff nocompile/r/return_11_G.d @ 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 | |
children |
line wrap: on
line diff
--- /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();