URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
// { dg-do assemble }
|
// { dg-do assemble }
|
// PRMS Id: 4257
|
// PRMS Id: 4257
|
// Bug: g++ ignores non-member possibilities (ideal_candidate_ansi bug)
|
// Bug: g++ ignores non-member possibilities (ideal_candidate_ansi bug)
|
|
|
class ostream
|
class ostream
|
{
|
{
|
public:
|
public:
|
#ifdef EITHER_ONE_A
|
#ifdef EITHER_ONE_A
|
ostream& operator<<(unsigned long n);
|
ostream& operator<<(unsigned long n);
|
ostream& operator<<(long n);
|
ostream& operator<<(long n);
|
#else
|
#else
|
ostream& operator<<(short n);
|
ostream& operator<<(short n);
|
ostream& operator<<(unsigned short n);
|
ostream& operator<<(unsigned short n);
|
#endif
|
#endif
|
};
|
};
|
|
|
class ccObjectInfo {};
|
class ccObjectInfo {};
|
|
|
ostream& operator << (ostream& out, const ccObjectInfo& obj);
|
ostream& operator << (ostream& out, const ccObjectInfo& obj);
|
|
|
class ccString : public ccObjectInfo
|
class ccString : public ccObjectInfo
|
{
|
{
|
#ifdef EITHER_ONE_B
|
#ifdef EITHER_ONE_B
|
operator int () const;
|
operator int () const;
|
#else
|
#else
|
operator long () const;
|
operator long () const;
|
#endif
|
#endif
|
};
|
};
|
|
|
// Should pick this one!!
|
// Should pick this one!!
|
ostream& operator << (ostream& o, const ccString & s);
|
ostream& operator << (ostream& o, const ccString & s);
|
|
|
extern ostream cout;
|
extern ostream cout;
|
|
|
void f ()
|
void f ()
|
{
|
{
|
ccString foo;
|
ccString foo;
|
cout << foo;
|
cout << foo;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.