blob: 87997fa354c3cb0e623e018544e9577f518f9331 [file] [log] [blame]
class Base {
public:
virtual ~Base() {}
virtual int foo() { return 1; }
};
class Derived : public Base {
public:
virtual int foo() { return 2; }
};
int main() {
Base realbase;
realbase.foo();
Derived d;
Base *b = &d;
return 0; // Set breakpoint here
}