gcc/testsuite/gdc.test/runnable/test9271.d
raw| 1 | // PERMUTE_ARGS: |
| 2 | // EXTRA_FILES: imports/test9271a.d |
| 3 | import algorithm = imports.test9271a; |
| 4 | |
| 5 | bool any(alias predicate, Range)(Range range) |
| 6 | { |
| 7 | return algorithm.any!(predicate)(range); |
| 8 | } |
| 9 | |
| 10 | void main() |
| 11 | { |
| 12 | auto arr = ["foo"]; |
| 13 | any!(e => e == "asd")(arr); // infinite recursive call -> OK |
| 14 | } |