aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.c++/printmethod.cc
blob: d32e1b1d1c47aa45b3e2daf1b32777832be6cb07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* 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
}