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
PR testsuite/86649
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
overload
/
extern-C-1.C
blob
839a0b49ae29eab6b0ca34d959cc6217bfcb5aa5
1
// PR c++/34691
2
3
namespace A {
4
extern "C" void f(int = 5); // { dg-message "= 5" }
5
}
6
namespace B {
7
extern "C" void f(int = 4); // { dg-message "= 4" }
8
}
9
10
using A::f;
11
using B::f;
12
int main() {
13
void (*fp)(int) = f; // OK
14
f(3); // OK
15
f(); // { dg-error "default argument mismatch" }
16
}
17