☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fail194.d
☽
☼
gcc/testsuite/gdc.test/fail_compilation/fail194.d
code
plain
raw
1
/*
2
TEST_OUTPUT:
3
---
4
fail_compilation/fail194.d(18): Error: function `& foo` is overloaded
5
---
6
*/
7
8
import core.vararg;
9
10
void bar(int i, ...) { }
11
12
void foo() { }
13
void foo(int) { }
14
15
void main()
16
{
17
//bar(1, cast(void function())&foo);
18
bar(1, &foo);
19
}