gcc/testsuite/gdc.test/fail_compilation/ice11472.d
raw| 1 | /* |
| 2 | TEST_OUTPUT: |
| 3 | --- |
| 4 | fail_compilation/ice11472.d(13): Error: template instance `fun2!fun` `fun2` is not a template declaration, it is a function |
| 5 | fail_compilation/ice11472.d(18): Error: template instance `ice11472.fun1!(fun3)` error instantiating |
| 6 | --- |
| 7 | */ |
| 8 | |
| 9 | void fun3() {} |
| 10 | void fun2(string a) {} |
| 11 | void fun1(alias fun=fun3)() |
| 12 | { |
| 13 | "a".fun2!fun; |
| 14 | } |
| 15 | |
| 16 | void main() |
| 17 | { |
| 18 | fun1; |
| 19 | } |