summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/commands/expression/call-overridden-method/main.cpp
blob: 54ae705d2978527249dea04fd762570f333a5b57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class Base {
public:
  virtual ~Base() {}
  virtual void foo() {}
};

class Derived : public Base {
public:
  virtual void foo() {}
};

int main() {
  Derived d;
  Base *b = &d;
  return 0; // Set breakpoint here
}
OpenPOWER on IntegriCloud