☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fail193.d
☽
☼
gcc/testsuite/gdc.test/fail_compilation/fail193.d
code
plain
raw
1
/*
2
TEST_OUTPUT:
3
---
4
fail_compilation/fail193.d(14): Error: cannot infer type from overloaded function symbol `& foo`
5
---
6
*/
7
8
void foo() { }
9
void foo(int) { }
10
11
void main()
12
{
13
//void function(int) fp = &foo;
14
auto fp = &foo;
15
fp(1);
16
}