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.
14 lines
215 B
C++
14 lines
215 B
C++
/* Create some objects, and try to print out their methods. */
|
|
|
|
class A {
|
|
public:
|
|
virtual void virt() {};
|
|
void nonvirt() {};
|
|
};
|
|
|
|
int main()
|
|
{
|
|
A *theA = new A;
|
|
|
|
return 0; // breakpoint: constructs-done
|
|
}
|