d: Merge upstream dmd, druntime 4c18eed967, phobos d945686a4.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / vararg2.d
blobeb235583efa590b6e06b39bbb72128e3061e2e64
1 /* TEST_OUTPUT:
2 ---
3 fail_compilation/vararg2.d(106): Error: function `vararg2.foo(int x, const return ...)` is not callable using argument types `(double)`
4 fail_compilation/vararg2.d(106): cannot pass argument `1.0` of type `double` to parameter `int x`
5 fail_compilation/vararg2.d(111): Error: function `vararg2.bar(int x, scope shared ...)` is not callable using argument types `(double)`
6 fail_compilation/vararg2.d(111): cannot pass argument `1.0` of type `double` to parameter `int x`
7 ---
8 */
10 #line 100
12 int* foo(int x, return const ...);
13 int* bar(int x, scope shared ...);
15 void test1()
17 foo(1.0);
20 void test2()
22 bar(1.0);