mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-21 20:45:53 -04:00
18 lines
252 B
C++
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
|
|
}
|