mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-09 04:21:49 +08:00
1105b7eff4
* gdb.cp: New directory. * gdb.cp/*: Copy from gdb.c++/*. * gdb.c++/*: Remove. * Makefile.in: Change gdb.c++ to gdb.cp. * configure.in: Ditto. * configure: Regnerate.
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;
|
|
}
|