OpenCores
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] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// 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
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.