gcc/testsuite/gdc.test/fail_compilation/ice14130.d
raw| 1 | /* |
| 2 | TEST_OUTPUT: |
| 3 | --- |
| 4 | fail_compilation/ice14130.d(10): Error: undefined identifier `Undef` |
| 5 | fail_compilation/ice14130.d(14): Error: template `foo` is not callable using argument types `!()(int)` |
| 6 | fail_compilation/ice14130.d(10): Candidate is: `foo(R, F = Undef)(R r, F s = 0)` |
| 7 | --- |
| 8 | */ |
| 9 | |
| 10 | F foo(R, F = Undef)(R r, F s = 0) {} |
| 11 | |
| 12 | void main() |
| 13 | { |
| 14 | 0.foo; |
| 15 | } |