d: Merge upstream dmd, druntime 4c18eed967, phobos d945686a4.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail15616d.d
bloba0f85a1df9c8d2fe7edaec882e5cc9b82aa567fe
1 /*
2 REQUIRED_ARGS: -verror-supplements=2
3 TEST_OUTPUT:
4 ---
5 fail_compilation/fail15616d.d(44): Error: none of the overloads of `foo` are callable using argument types `(double)`
6 fail_compilation/fail15616d.d(17): Candidates are: `fail15616d.foo(int a)`
7 fail_compilation/fail15616d.d(20): `fail15616d.foo(int a, int b)`
8 fail_compilation/fail15616d.d(44): ... (6 more, -v to show) ...
9 ---
12 #line 17
13 void foo(int a)
16 void foo(int a, int b)
19 void foo(T)(T a) if (is(T == float))
22 void foo(T)(T a) if (is(T == char))
25 void foo(int a, int b, int c)
28 void foo(string a)
31 void foo(string a, string b)
34 void foo(string a, string b, string c)
38 void main()
40 foo(3.14);