Mercurial > projects > dstress
changeset 1287:8cd17283ece1
[Issue 750] New: Recursive typeof in function declaration crashes DMD
David Friedman <dvdfrdmn@users.sf.net>
2006-12-26
http://d.puremagic.com/issues/show_bug.cgi?id=750
author | thomask |
---|---|
date | Wed, 27 Dec 2006 11:59:05 +0000 |
parents | 2df3e4a5a044 |
children | 61d7e32e70a8 |
files | nocompile/t/typeof_11_D.d run/t/typeof_11_C.d |
diffstat | 2 files changed, 38 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /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 <dvdfrdmn@users.sf.net> +// @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; +} +
--- /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 <dvdfrdmn@users.sf.net> +// @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; +} +