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 |
// Contribued by Gabriel Dos Reis
|
// Contribued by Gabriel Dos Reis
|
// Origin: iskey@i100.ryd.student.liu.se
|
// Origin: iskey@i100.ryd.student.liu.se
|
|
|
class ostream;
|
class ostream;
|
extern ostream& cout;
|
extern ostream& cout;
|
|
|
template struct s;
|
template struct s;
|
|
|
template
|
template
|
ostream& operator<<(ostream &o, const typename s::t &x)
|
ostream& operator<<(ostream &o, const typename s::t &x)
|
{
|
{
|
return o;
|
return o;
|
}
|
}
|
|
|
template
|
template
|
struct s {
|
struct s {
|
struct t
|
struct t
|
{
|
{
|
friend ostream&
|
friend ostream&
|
operator<<(ostream&, const typename s::t &);
|
operator<<(ostream&, const typename s::t &);
|
};
|
};
|
t x;
|
t x;
|
};
|
};
|
|
|
int main()
|
int main()
|
{
|
{
|
s::t y;
|
s::t y;
|
cout << y; // { dg-error "" }
|
cout << y; // { dg-error "" }
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.