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 |
/* { dg-do compile } */
|
/* { dg-do compile } */
|
|
|
/* PR c++/21087 */
|
/* PR c++/21087 */
|
|
|
/* We used to overload the template function with the built-in
|
/* We used to overload the template function with the built-in
|
declaration, instead of replacing it as we should, and then barf at
|
declaration, instead of replacing it as we should, and then barf at
|
the using decl because of a test that none of the overload set
|
the using decl because of a test that none of the overload set
|
members were anticipated built-ins. */
|
members were anticipated built-ins. */
|
|
|
extern "C" signed int toupper(signed int __c) throw();
|
extern "C" signed int toupper(signed int __c) throw();
|
namespace std
|
namespace std
|
{
|
{
|
template< typename a > a toupper(a,int){}
|
template< typename a > a toupper(a,int){}
|
using ::toupper;
|
using ::toupper;
|
}
|
}
|
|
|
int f () {
|
int f () {
|
std::toupper((signed int)'a');
|
std::toupper((signed int)'a');
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.