# HG changeset patch # User thomask # Date 1167220745 0 # Node ID 8cd17283ece1f511b4ea8fd9ce9075ff055c6aab # Parent 2df3e4a5a04401c43f09b6f575325c0b750c755e [Issue 750] New: Recursive typeof in function declaration crashes DMD David Friedman 2006-12-26 http://d.puremagic.com/issues/show_bug.cgi?id=750 diff -r 2df3e4a5a044 -r 8cd17283ece1 nocompile/t/typeof_11_D.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/t/typeof_11_D.d Wed Dec 27 11:59:05 2006 +0000 @@ -0,0 +1,20 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ David Friedman +// @date@ 2006-12-26 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=750 +// @desc@ [Issue 750] New: Recursive typeof in function declaration crashes DMD + +// __DSTRESS_ELINE__ 17 + +module dstress.nocompile.t.typeof_11_D; + +void test(typeof(&test) p) { } + +int main() { + test(&test); + return 0; +} + diff -r 2df3e4a5a044 -r 8cd17283ece1 run/t/typeof_11_C.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/typeof_11_C.d Wed Dec 27 11:59:05 2006 +0000 @@ -0,0 +1,18 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ David Friedman +// @date@ 2006-12-26 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=750 +// @desc@ [Issue 750] New: Recursive typeof in function declaration crashes DMD + +module dstress.run.t.typeof_11_C; + +void test(typeof(&test) p) { } + +int main() { + test(&test); + return 0; +} +