d: Merge dmd. druntime e770945277, phobos 6d6e0b9b9
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / bug15613.d
blobac167f3f8e9556295d6b82821f21258a839f10bd
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/bug15613.d(18): Error: function `f` is not callable using argument types `(typeof(null))`
5 fail_compilation/bug15613.d(18): cannot pass argument `null` of type `typeof(null)` to parameter `int...`
6 fail_compilation/bug15613.d(13): `bug15613.f(int...)` declared here
7 fail_compilation/bug15613.d(19): Error: function `g` is not callable using argument types `(int)`
8 fail_compilation/bug15613.d(19): cannot pass argument `8` of type `int` to parameter `Object`
9 fail_compilation/bug15613.d(14): `bug15613.g(Object, ...)` declared here
10 ---
13 void f(int...);
14 void g(Object, ...);
16 void main()
18 f(null);
19 g(8);
23 TEST_OUTPUT:
24 ---
25 fail_compilation/bug15613.d(35): Error: function `h` is not callable using argument types `(int, void function(int[]...))`
26 fail_compilation/bug15613.d(35): cannot pass argument `& h` of type `void function(int[]...)` to parameter `int[]...`
27 fail_compilation/bug15613.d(31): `bug15613.h(int[]...)` declared here
28 ---
31 void h(int[]...);
33 void test()
35 h(7, &h);