]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/fail_compilation/ice14130.d
Add D front-end, libphobos library, and D2 testsuite.
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / ice14130.d
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/ice14130.d(10): Error: undefined identifier `Undef`
5 fail_compilation/ice14130.d(14): Error: template ice14130.foo cannot deduce function from argument types !()(int), candidates are:
6 fail_compilation/ice14130.d(10): ice14130.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 }