]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/fail_compilation/ice11472.d
d: Import dmd b8384668f, druntime e6caaab9, phobos 5ab9ad256 (v2.098.0-beta.1)
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / ice11472.d
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 }