Sign in
cobalt
/
cobalt
/
308ed6b84664d59944cd65f4b4359c28a2443be6
/
.
/
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
();
}