xref: /llvm-project/lldb/test/API/commands/frame/diagnose/virtual-method-call/main.cpp (revision 99451b4453688a94c6014cac233d371ab4cc342d)
1 class Foo {
2 public:
3   int a;
4   int b;
Sum()5   virtual int Sum() { return a + b; }
6 };
7 
GetAFoo()8 struct Foo *GetAFoo() {
9   return (struct Foo*)0;
10 }
11 
main()12 int main() {
13   struct Foo *foo = GetAFoo();
14   return foo->Sum();
15 }
16 
17