Mercurial > projects > dstress
annotate run/l/lazy_02_D.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 |
rev | line source |
---|---|
1318
e9c13dbd0a8d
[Issue 749] Internal error: toir.c 170 with lazy bool and delegate with default argument
thomask
parents:
diff
changeset
|
1 // $HeadURL$ |
e9c13dbd0a8d
[Issue 749] Internal error: toir.c 170 with lazy bool and delegate with default argument
thomask
parents:
diff
changeset
|
2 // $Date$ |
e9c13dbd0a8d
[Issue 749] Internal error: toir.c 170 with lazy bool and delegate with default argument
thomask
parents:
diff
changeset
|
3 // $Author$ |
e9c13dbd0a8d
[Issue 749] Internal error: toir.c 170 with lazy bool and delegate with default argument
thomask
parents:
diff
changeset
|
4 |
e9c13dbd0a8d
[Issue 749] Internal error: toir.c 170 with lazy bool and delegate with default argument
thomask
parents:
diff
changeset
|
5 // @author@ Matti Niemenmaa <deewiant@gmail.com> |
e9c13dbd0a8d
[Issue 749] Internal error: toir.c 170 with lazy bool and delegate with default argument
thomask
parents:
diff
changeset
|
6 // @desc@ 2006-12-26 |
e9c13dbd0a8d
[Issue 749] Internal error: toir.c 170 with lazy bool and delegate with default argument
thomask
parents:
diff
changeset
|
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=749 |
e9c13dbd0a8d
[Issue 749] Internal error: toir.c 170 with lazy bool and delegate with default argument
thomask
parents:
diff
changeset
|
8 // @desc@ [Issue 749] Internal error: toir.c 170 with lazy bool and delegate with default argument |
e9c13dbd0a8d
[Issue 749] Internal error: toir.c 170 with lazy bool and delegate with default argument
thomask
parents:
diff
changeset
|
9 |
e9c13dbd0a8d
[Issue 749] Internal error: toir.c 170 with lazy bool and delegate with default argument
thomask
parents:
diff
changeset
|
10 module dstress.run.l.lazy_02_D; |
e9c13dbd0a8d
[Issue 749] Internal error: toir.c 170 with lazy bool and delegate with default argument
thomask
parents:
diff
changeset
|
11 |
e9c13dbd0a8d
[Issue 749] Internal error: toir.c 170 with lazy bool and delegate with default argument
thomask
parents:
diff
changeset
|
12 bool nextis(void delegate() dgpositive = {}) { |
e9c13dbd0a8d
[Issue 749] Internal error: toir.c 170 with lazy bool and delegate with default argument
thomask
parents:
diff
changeset
|
13 return true; |
e9c13dbd0a8d
[Issue 749] Internal error: toir.c 170 with lazy bool and delegate with default argument
thomask
parents:
diff
changeset
|
14 } |
e9c13dbd0a8d
[Issue 749] Internal error: toir.c 170 with lazy bool and delegate with default argument
thomask
parents:
diff
changeset
|
15 |
e9c13dbd0a8d
[Issue 749] Internal error: toir.c 170 with lazy bool and delegate with default argument
thomask
parents:
diff
changeset
|
16 bool looping(lazy bool condition) { |
e9c13dbd0a8d
[Issue 749] Internal error: toir.c 170 with lazy bool and delegate with default argument
thomask
parents:
diff
changeset
|
17 return true; |
e9c13dbd0a8d
[Issue 749] Internal error: toir.c 170 with lazy bool and delegate with default argument
thomask
parents:
diff
changeset
|
18 } |
e9c13dbd0a8d
[Issue 749] Internal error: toir.c 170 with lazy bool and delegate with default argument
thomask
parents:
diff
changeset
|
19 |
e9c13dbd0a8d
[Issue 749] Internal error: toir.c 170 with lazy bool and delegate with default argument
thomask
parents:
diff
changeset
|
20 int main() { |
e9c13dbd0a8d
[Issue 749] Internal error: toir.c 170 with lazy bool and delegate with default argument
thomask
parents:
diff
changeset
|
21 looping(looping(looping(nextis()))); |
e9c13dbd0a8d
[Issue 749] Internal error: toir.c 170 with lazy bool and delegate with default argument
thomask
parents:
diff
changeset
|
22 return 0; |
e9c13dbd0a8d
[Issue 749] Internal error: toir.c 170 with lazy bool and delegate with default argument
thomask
parents:
diff
changeset
|
23 } |