xref: /llvm-project/lldb/test/API/commands/expression/unwind_expression/main.cpp (revision 99451b4453688a94c6014cac233d371ab4cc342d)
1 static int static_value = 0;
2 
3 int
a_function_to_call()4 a_function_to_call()
5 {
6     static_value++; // Stop inside the function here.
7     return static_value;
8 }
9 
second_function(int x)10 int second_function(int x){
11   for(int i=0; i<10; ++i) {
12     a_function_to_call();
13   }
14   return x;
15 }
16 
main(int argc,char const * argv[])17 int main (int argc, char const *argv[])
18 {
19     a_function_to_call();  // Set a breakpoint here to get started
20     second_function(1);
21     return 0;
22 }
23