URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
// PR c++/13659
|
// PR c++/13659
|
|
|
// { dg-do compile }
|
// { dg-do compile }
|
|
|
namespace foo1 {
|
namespace foo1 {
|
template void f(T);
|
template void f(T);
|
}
|
}
|
namespace foo2 {
|
namespace foo2 {
|
template void f(T, T);
|
template void f(T, T);
|
}
|
}
|
namespace foo {
|
namespace foo {
|
using namespace foo1;
|
using namespace foo1;
|
using namespace foo2;
|
using namespace foo2;
|
}
|
}
|
|
|
// Make sure we bring in both declarations.
|
// Make sure we bring in both declarations.
|
using foo::f;
|
using foo::f;
|
|
|
int main() {
|
int main() {
|
f(1);
|
f(1);
|
f(1, 1);
|
f(1, 1);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.