Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fail193.d
blob: 9fcae5b9cb998f2d22cf040d7c0b8a35b8985623 [
file
] [
log
] [
blame
]
/*
TEST_OUTPUT:
---
fail_compilation/fail193.d(14): Error: cannot infer type from overloaded function symbol `& foo`
---
*/
void
foo
()
{
}
void
foo
(
int
)
{
}
void
main
()
{
//void function(int) fp = &foo;
auto
fp
=
&
foo
;
fp
(
1
);
}