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
MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fail194.d
blob
f2270f11012601eb655411cfa4a90d7502e0c30f
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
}