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
/
test19608.d
blob
cea84a6bd50a41bca77204ad72a5e584101c9ff0
1
// https://issues.dlang.org/show_bug.cgi?id=19608
2
/*
3
TEST_OUTPUT:
4
---
5
fail_compilation/test19608.d(15): Error: cannot pass function `*& f` as a function argument
6
---
7
*/
8
import
core
.
stdc
.
stdarg
;
9
10
void
f
(
int
) {}
11
void
g
(...) {}
12
void
h
()
13
{
14
g
(&
f
);
// OK, function address
15
g
(*&
f
);
// ICE -> Error
16
}