URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [inherit/] [covariant18.C] - Rev 742
Go to most recent revision | Compare with Previous | Blame | View Log
// PR c++/47873
// { dg-do run }
struct Base
{
virtual ~Base(){}
virtual Base& This() { return *this; }
};
struct Ent : virtual Base
{
void *m_Body;
Ent& This() { return *this; }
virtual Ent& body()
{
return This();
}
};
struct Msg : virtual Ent
{
Msg()
{
body();
}
Msg& This() { return *this; }
};
int main()
{
Msg m;
return 0;
}
Go to most recent revision | Compare with Previous | Blame | View Log