old-cross-binutils/gdb/testsuite/gdb.cp/pr-1210.cc
Michael Chastain 1105b7eff4 2003-08-22 Michael Chastain <mec@shout.net>
* 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.
2003-08-23 03:55:59 +00:00

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