teak-llvm/lldb/packages/Python/lldbsuite/test/commands/expression/call-overridden-method/main.cpp
2019-09-27 08:21:08 +00:00

18 lines
252 B
C++

class Base {
public:
virtual ~Base() {}
virtual int foo() { return 1; }
};
class Derived : public Base {
public:
virtual int foo() { return 2; }
};
int main() {
Base realbase;
Derived d;
Base *b = &d;
return 0; // Set breakpoint here
}