binutils-gdb/gdb/testsuite/gdb.cp/pr-1210.cc

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;
}