URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [overload/] [extern-C-1.C] - Rev 320
Go to most recent revision | Compare with Previous | Blame | View Log
// PR c++/34691
namespace A {
extern "C" void f(int = 5); // { dg-message "= 5" }
}
namespace B {
extern "C" void f(int = 4); // { dg-message "= 4" }
}
using A::f;
using B::f;
int main() {
void (*fp)(int) = f; // OK
f(3); // OK
f(); // { dg-error "default argument mismatch" }
}
Go to most recent revision | Compare with Previous | Blame | View Log