mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-06 12:09:26 +08:00
20 lines
157 B
C++
20 lines
157 B
C++
|
class A
|
||
|
{
|
||
|
};
|
||
|
|
||
|
class B : virtual public A
|
||
|
{
|
||
|
};
|
||
|
|
||
|
class C : public A
|
||
|
{
|
||
|
protected:
|
||
|
B myB;
|
||
|
};
|
||
|
|
||
|
int main()
|
||
|
{
|
||
|
C *obj = new C();
|
||
|
return 0;
|
||
|
}
|