Debian Codegraph @

gcc/testsuite/gdc.test/fail_compilation/vararg2.d

raw
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 ----
10 */
11
12 #line 100
13
14 int* foo(int x, return const ...);
15 int* bar(int x, scope shared ...);
16
17 void test1()
18 {
19 foo(1.0);
20 }
21
22 void test2()
23 {
24 bar(1.0);
25 }