d: Merge dmd. druntime e770945277, phobos 6d6e0b9b9
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / vararg2.d
blob1a2846aa01dec8ea414092bc4e1c880bf41a25c5
1 /* TEST_OUTPUT:
2 ----
3 fail_compilation/vararg2.d(106): Error: function `foo` 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(101): `vararg2.foo(int x, const return ...)` declared here
6 fail_compilation/vararg2.d(111): Error: function `bar` is not callable using argument types `(double)`
7 fail_compilation/vararg2.d(111): cannot pass argument `1.0` of type `double` to parameter `int x`
8 fail_compilation/vararg2.d(102): `vararg2.bar(int x, scope shared ...)` declared here
9 ----
12 #line 100
14 int* foo(int x, return const ...);
15 int* bar(int x, scope shared ...);
17 void test1()
19 foo(1.0);
22 void test2()
24 bar(1.0);