repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[NFC][AArch64] Explicitly define undefined bits for instructions (#122129)
[llvm-project.git]
/
lldb
/
test
/
API
/
api
/
multithreaded
/
deep_stack.cpp
blob
da89228766e425bcbf274aca5cd4a804a634a68c
1
// This is a test program that makes a deep stack
2
// so we can test unwinding from multiple threads.
3
4
void
call_me
(
int
input
) {
5
if
(
input
>
1000
) {
6
input
+=
1
;
// Set a breakpoint here
7
if
(
input
>
1001
)
8
input
+=
1
;
9
return
;
10
}
else
11
call_me
(++
input
);
12
}
13
14
int
main
() {
15
call_me
(
0
);
16
return
0
;
17
}