Mercurial > projects > dstress
diff run/l/lazy_02_A.d @ 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 | |
children |
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; +}