URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
// PR c++/13594 (secondary)
|
// PR c++/13594 (secondary)
|
|
|
// { dg-do compile }
|
// { dg-do compile }
|
|
|
namespace fool {
|
namespace fool {
|
namespace foo {
|
namespace foo {
|
template void swap(T, T);
|
template void swap(T, T);
|
}
|
}
|
using namespace foo __attribute__((strong));
|
using namespace foo __attribute__((strong));
|
template void swap(T);
|
template void swap(T);
|
}
|
}
|
|
|
int main() {
|
int main() {
|
// we used to fail to look up the associated namespace here
|
// we used to fail to look up the associated namespace here
|
fool::swap(1, 1);
|
fool::swap(1, 1);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.