Mercurial > projects > dstress
changeset 1318:e9c13dbd0a8d
[Issue 749] Internal error: toir.c 170 with lazy bool and delegate with default argument
Matti Niemenmaa <deewiant@gmail.com>
2006-12-26
http://d.puremagic.com/issues/show_bug.cgi?id=749
author | thomask |
---|---|
date | Sun, 31 Dec 2006 14:38:09 +0000 |
parents | 4df71a8c82f2 |
children | 81222734adf3 |
files | run/l/lazy_02_A.d run/l/lazy_02_B.d run/l/lazy_02_C.d run/l/lazy_02_D.d |
diffstat | 4 files changed, 93 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/l/lazy_02_A.d Sun Dec 31 14:38:09 2006 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Matti Niemenmaa <deewiant@gmail.com> +// @desc@ 2006-12-26 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=749 +// @desc@ [Issue 749] Internal error: toir.c 170 with lazy bool and delegate with default argument + +module dstress.run.l.lazy_02_A; + +bool nextis(void delegate() dgpositive = {}) { + return true; +} + +bool looping(lazy bool condition) { + return true; +} + +int main() { + looping(nextis()); + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/l/lazy_02_B.d Sun Dec 31 14:38:09 2006 +0000 @@ -0,0 +1,24 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Matti Niemenmaa <deewiant@gmail.com> +// @desc@ 2006-12-26 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=749 +// @desc@ [Issue 749] Internal error: toir.c 170 with lazy bool and delegate with default argument + +module dstress.run.l.lazy_02_B; + +bool nextis(void delegate() dgpositive = {}) { + return true; +} + +bool looping(lazy bool condition) { + return true; +} + +int main() { + looping(nextis()); + looping(nextis()); + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/l/lazy_02_C.d Sun Dec 31 14:38:09 2006 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Matti Niemenmaa <deewiant@gmail.com> +// @desc@ 2006-12-26 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=749 +// @desc@ [Issue 749] Internal error: toir.c 170 with lazy bool and delegate with default argument + +module dstress.run.l.lazy_02_C; + +bool nextis(void delegate() dgpositive = {}) { + return true; +} + +bool looping(lazy bool condition) { + return true; +} + +int main() { + looping(looping(nextis())); + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/l/lazy_02_D.d Sun Dec 31 14:38:09 2006 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Matti Niemenmaa <deewiant@gmail.com> +// @desc@ 2006-12-26 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=749 +// @desc@ [Issue 749] Internal error: toir.c 170 with lazy bool and delegate with default argument + +module dstress.run.l.lazy_02_D; + +bool nextis(void delegate() dgpositive = {}) { + return true; +} + +bool looping(lazy bool condition) { + return true; +} + +int main() { + looping(looping(looping(nextis()))); + return 0; +}