Sign in
cobalt
/
cobalt
/
ab1caa28c6012a666d3e308efe3749ea34f3b846
/
.
/
src
/
third_party
/
llvm-project
/
lldb
/
packages
/
Python
/
lldbsuite
/
test
/
functionalities
/
frame-diagnose
/
dereference-this
/
main.cpp
blob: 1f177230ed907c5a8772c12c9b9bf1b4d4a84c39 [
file
] [
log
] [
blame
]
struct
Foo
{
int
a
;
int
b
;
int
Sum
()
{
return
a
+
b
;
}
};
struct
Foo
*
GetAFoo
()
{
return
(
struct
Foo
*)
0
;
}
int
main
()
{
struct
Foo
*
foo
=
GetAFoo
();
return
foo
->
Sum
();
}