☰
Debian Codegraph
@
1:22.1.8-2
1:22.1.8-1
1:22.1.7-1
/
/
lldb
/
test
/
API
/
commands
/
frame
/
diagnose
/
virtual-method-call
/
main.cpp
☽
☼
lldb/test/API/commands/frame/diagnose/virtual-method-call/main.cpp
code
plain
raw
APACHE-2-LLVM-EXCEPTIONS
2003-2017 University of Illinois at Urbana-Champaign.
debian/copyright
1
class Foo {
2
public:
3
int a;
4
int b;
5
virtual int Sum() { return a + b; }
6
};
7
8
struct Foo *GetAFoo() {
9
return (struct Foo*)0;
10
}
11
12
int main() {
13
struct Foo *foo = GetAFoo();
14
return foo->Sum();
15
}
16