Sign in
cobalt
/
cobalt
/
04cd6faca4dd5039a1b810e9ba7b7a79e51a781d
/
.
/
src
/
third_party
/
llvm-project
/
lldb
/
packages
/
Python
/
lldbsuite
/
test
/
functionalities
/
inferior-crashing
/
recursive-inferior
/
main.c
blob: 25e6e8df0b9b16f30d0ed6af4d52f197a87b90b2 [
file
] [
log
] [
blame
]
void
recursive_function
(
int
i
)
{
if
(
i
<
10
)
{
recursive_function
(
i
+
1
);
}
else
{
char
*
null
=
0
;
*
null
=
0
;
// Crash here.
}
}
int
main
(
int
argc
,
char
*
argv
[])
{
recursive_function
(
0
);
return
0
;
}