brintos

brintos / llvm-project-archived public Read only

0
0
Text · 318 B · da89228 Raw
18 lines · cpp
1// This is a test program that makes a deep stack2// so we can test unwinding from multiple threads.3 4void call_me(int input) {5  if (input > 1000) {6    input += 1; // Set a breakpoint here7    if (input > 1001)8      input += 1;9    return;10  } else11    call_me(++input);12}13 14int main() {15  call_me(0);16  return 0;17}18