xref: /llvm-project/lldb/test/API/api/multithreaded/deep_stack.cpp (revision 186fac33d08b34be494caa58fe63972f69c6d6ab)
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 }
18