]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/fail_compilation/diag8101.d
Add D front-end, libphobos library, and D2 testsuite.
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / diag8101.d
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/diag8101.d(56): Error: function diag8101.f_0 (int) is not callable using argument types ()
5 fail_compilation/diag8101.d(57): Error: none of the overloads of 'f_1' are callable using argument types (), candidates are:
6 fail_compilation/diag8101.d(32): diag8101.f_1(int)
7 fail_compilation/diag8101.d(33): diag8101.f_1(int, int)
8 fail_compilation/diag8101.d(58): Error: none of the overloads of 'f_2' are callable using argument types (), candidates are:
9 fail_compilation/diag8101.d(35): diag8101.f_2(int)
10 fail_compilation/diag8101.d(36): diag8101.f_2(int, int)
11 fail_compilation/diag8101.d(37): diag8101.f_2(int, int, int)
12 fail_compilation/diag8101.d(38): diag8101.f_2(int, int, int, int)
13 fail_compilation/diag8101.d(39): diag8101.f_2(int, int, int, int, int)
14 fail_compilation/diag8101.d(58): ... (1 more, -v to show) ...
15 fail_compilation/diag8101.d(60): Error: template diag8101.t_0 cannot deduce function from argument types !()(), candidates are:
16 fail_compilation/diag8101.d(42): diag8101.t_0(T1)()
17 fail_compilation/diag8101.d(61): Error: template diag8101.t_1 cannot deduce function from argument types !()(), candidates are:
18 fail_compilation/diag8101.d(44): diag8101.t_1(T1)()
19 fail_compilation/diag8101.d(45): diag8101.t_1(T1, T2)()
20 fail_compilation/diag8101.d(62): Error: template diag8101.t_2 cannot deduce function from argument types !()(), candidates are:
21 fail_compilation/diag8101.d(47): diag8101.t_2(T1)()
22 fail_compilation/diag8101.d(48): diag8101.t_2(T1, T2)()
23 fail_compilation/diag8101.d(49): diag8101.t_2(T1, T2, T3)()
24 fail_compilation/diag8101.d(50): diag8101.t_2(T1, T2, T3, T4)()
25 fail_compilation/diag8101.d(51): diag8101.t_2(T1, T2, T3, T4, T5)()
26 fail_compilation/diag8101.d(62): ... (1 more, -v to show) ...
27 ---
28 */
29
30 void f_0(int);
31
32 void f_1(int);
33 void f_1(int, int);
34
35 void f_2(int);
36 void f_2(int, int);
37 void f_2(int, int, int);
38 void f_2(int, int, int, int);
39 void f_2(int, int, int, int, int);
40 void f_2(int, int, int, int, int, int);
41
42 void t_0(T1)();
43
44 void t_1(T1)();
45 void t_1(T1, T2)();
46
47 void t_2(T1)();
48 void t_2(T1, T2)();
49 void t_2(T1, T2, T3)();
50 void t_2(T1, T2, T3, T4)();
51 void t_2(T1, T2, T3, T4, T5)();
52 void t_2(T1, T2, T3, T4, T5, T6)();
53
54 void main()
55 {
56 f_0();
57 f_1();
58 f_2();
59
60 t_0();
61 t_1();
62 t_2();
63 }