1// This is a test program that makes a deep stack
2// so we can test unwinding from multiple threads.
3
4void 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: ++input);
12}
13
14int main() {
15 call_me(input: 0);
16 return 0;
17}
18

source code of lldb/test/API/api/multithreaded/deep_stack.cpp