summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/lldb/packages/Python/lldbsuite/test/functionalities/thread/backtrace_limit/main.cpp
blob: eca1eadc8e45cda5ec8560db6373b9708b3bc5d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
int bottom () { 
  return 1;  // Set a breakpoint here
} 
int foo(int in) { 
  if (in > 0)
    return foo(--in) + 5; 
  else
    return bottom();
}
int main()
{
   return foo(500);
}