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] - 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

powered by: WebSVN 2.1.0

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