URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [overload/] [extern-C-1.C] - Rev 707
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