diff options
Diffstat (limited to 'lldb/test/API/api/multithreaded/deep_stack.cpp')
| -rw-r--r-- | lldb/test/API/api/multithreaded/deep_stack.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lldb/test/API/api/multithreaded/deep_stack.cpp b/lldb/test/API/api/multithreaded/deep_stack.cpp new file mode 100644 index 000000000000..da89228766e4 --- /dev/null +++ b/lldb/test/API/api/multithreaded/deep_stack.cpp @@ -0,0 +1,17 @@ +// This is a test program that makes a deep stack +// so we can test unwinding from multiple threads. + +void call_me(int input) { + if (input > 1000) { + input += 1; // Set a breakpoint here + if (input > 1001) + input += 1; + return; + } else + call_me(++input); +} + +int main() { + call_me(0); + return 0; +} |
