Revert "[LoongArch] Eliminate the redundant sign extension of division (#107971)"
[llvm-project.git] / lldb / test / API / python_api / symbol-context / main.c
blobb6d3ee3386230d62de5db361089b0d1bf890a0e9
1 #include <stdio.h>
3 // This simple program is to test the lldb Python API SBSymbolContext.
4 // When stopped on a frame, we can get the symbol context using the SBFrame API
5 // SBFrame.GetSymbolContext().
7 int a(int);
8 int b(int);
9 int c(int);
11 int a(int val)
13 if (val <= 1)
14 return b(val);
15 else if (val >= 3)
16 return c(val);
18 return val;
21 int b(int val)
23 return c(val);
26 int c(int val)
28 return val + 3; // Find the line number of function "c" here.
31 int main (int argc, char const *argv[])
33 int A1 = a(1); // a(1) -> b(1) -> c(1)
34 printf("a(1) returns %d\n", A1);
36 int B2 = b(2); // b(2) -> c(2)
37 printf("b(2) returns %d\n", B2);
39 int A3 = a(3); // a(3) -> c(3)
40 printf("a(3) returns %d\n", A3);
42 return 0;