# HG changeset patch # User thomask # Date 1167575889 0 # Node ID e9c13dbd0a8d8ddd8397e351c114923804df9124 # Parent 4df71a8c82f221f98d65dc841e0d1daf299fcc61 [Issue 749] Internal error: toir.c 170 with lazy bool and delegate with default argument Matti Niemenmaa 2006-12-26 http://d.puremagic.com/issues/show_bug.cgi?id=749 diff -r 4df71a8c82f2 -r e9c13dbd0a8d run/l/lazy_02_A.d --- /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 +// @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; +} diff -r 4df71a8c82f2 -r e9c13dbd0a8d run/l/lazy_02_B.d --- /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 +// @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; +} diff -r 4df71a8c82f2 -r e9c13dbd0a8d run/l/lazy_02_C.d --- /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 +// @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; +} diff -r 4df71a8c82f2 -r e9c13dbd0a8d run/l/lazy_02_D.d --- /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 +// @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; +}