OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-dev/] [fsf-gcc-snapshot-1-mar-12/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [tc1/] [dr1.C] - Diff between revs 693 and 783

Only display areas with differences | Details | Blame | View Log

Rev 693 Rev 783
// { dg-do compile }
// { dg-do compile }
// Origin: Giovanni Bajo 
// Origin: Giovanni Bajo 
// DR1: What if two using-declarations refer to the same function but the
// DR1: What if two using-declarations refer to the same function but the
//  declarations introduce different default-arguments?
//  declarations introduce different default-arguments?
namespace A {
namespace A {
  extern "C" void f(int = 5);
  extern "C" void f(int = 5);
}
}
namespace B {
namespace B {
  extern "C" void f(int = 5);
  extern "C" void f(int = 5);
}
}
using A::f;
using A::f;
using B::f;
using B::f;
void use() {
void use() {
  f(3);
  f(3);
  f();        // { dg-error "" "" { xfail *-*-* } }
  f();        // { dg-error "" "" { xfail *-*-* } }
}
}
 
 

powered by: WebSVN 2.1.0

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