repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
d: Merge upstream dmd, druntime 4c18eed967, phobos d945686a4.
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fail193.d
blob
9fcae5b9cb998f2d22cf040d7c0b8a35b8985623
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
}