URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
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 *-*-* } }
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.