d: Merge upstream dmd, druntime 4c18eed967, phobos d945686a4.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / diag8101.d
blob4c8dfe881abff61087a5cd9b353ec8028fb2d4db
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/diag8101.d(61): Error: function `diag8101.f_0(int)` is not callable using argument types `()`
5 fail_compilation/diag8101.d(61): too few arguments, expected 1, got 0
6 fail_compilation/diag8101.d(62): Error: none of the overloads of `f_1` are callable using argument types `()`
7 fail_compilation/diag8101.d(35): Candidates are: `diag8101.f_1(int)`
8 fail_compilation/diag8101.d(36): `diag8101.f_1(int, int)`
9 fail_compilation/diag8101.d(63): Error: none of the overloads of `f_2` are callable using argument types `()`
10 fail_compilation/diag8101.d(38): Candidates are: `diag8101.f_2(int)`
11 fail_compilation/diag8101.d(39): `diag8101.f_2(int, int)`
12 fail_compilation/diag8101.d(40): `diag8101.f_2(int, int, int)`
13 fail_compilation/diag8101.d(41): `diag8101.f_2(int, int, int, int)`
14 fail_compilation/diag8101.d(42): `diag8101.f_2(int, int, int, int, int)`
15 fail_compilation/diag8101.d(43): `diag8101.f_2(int, int, int, int, int, int)`
16 fail_compilation/diag8101.d(63): ... (1 more, -v to show) ...
17 fail_compilation/diag8101.d(65): Error: template `diag8101.t_0` is not callable using argument types `!()()`
18 fail_compilation/diag8101.d(46): Candidate is: `t_0(T1)()`
19 fail_compilation/diag8101.d(66): Error: none of the overloads of template `diag8101.t_1` are callable using argument types `!()()`
20 fail_compilation/diag8101.d(48): Candidates are: `t_1(T1)()`
21 fail_compilation/diag8101.d(49): `t_1(T1, T2)()`
22 fail_compilation/diag8101.d(67): Error: none of the overloads of template `diag8101.t_2` are callable using argument types `!()()`
23 fail_compilation/diag8101.d(51): Candidates are: `t_2(T1)()`
24 fail_compilation/diag8101.d(52): `t_2(T1, T2)()`
25 fail_compilation/diag8101.d(53): `t_2(T1, T2, T3)()`
26 fail_compilation/diag8101.d(54): `t_2(T1, T2, T3, T4)()`
27 fail_compilation/diag8101.d(55): `t_2(T1, T2, T3, T4, T5)()`
28 fail_compilation/diag8101.d(56): `t_2(T1, T2, T3, T4, T5, T6)()`
29 fail_compilation/diag8101.d(67): ... (1 more, -v to show) ...
30 ---
33 void f_0(int);
35 void f_1(int);
36 void f_1(int, int);
38 void f_2(int);
39 void f_2(int, int);
40 void f_2(int, int, int);
41 void f_2(int, int, int, int);
42 void f_2(int, int, int, int, int);
43 void f_2(int, int, int, int, int, int);
44 void f_2(int, int, int, int, int, int, int);
46 void t_0(T1)();
48 void t_1(T1)();
49 void t_1(T1, T2)();
51 void t_2(T1)();
52 void t_2(T1, T2)();
53 void t_2(T1, T2, T3)();
54 void t_2(T1, T2, T3, T4)();
55 void t_2(T1, T2, T3, T4, T5)();
56 void t_2(T1, T2, T3, T4, T5, T6)();
57 void t_2(T1, T2, T3, T4, T5, T6, T7)();
59 void main()
61 f_0();
62 f_1();
63 f_2();
65 t_0();
66 t_1();
67 t_2();
70 // ignored
71 deprecated void f_2(char);