Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / test / API / python_api / event / main.c
blobf6dbff4be4da613fc74a4b9e1c13645eef45a200
1 #include <stdio.h>
3 // This simple program is to test the lldb Python API related to events.
5 int a(int);
6 int b(int);
7 int c(int);
9 int a(int val)
11 if (val <= 1)
12 return b(val);
13 else if (val >= 3)
14 return c(val);
16 return val;
19 int b(int val)
21 return c(val);
24 int c(int val)
26 return val + 3; // Find the line number of function "c" here.
29 int main (int argc, char const *argv[])
31 int A1 = a(1); // a(1) -> b(1) -> c(1)
32 printf("a(1) returns %d\n", A1);
34 int B2 = b(2); // b(2) -> c(2)
35 printf("b(2) returns %d\n", B2);
37 int A3 = a(3); // a(3) -> c(3)
38 printf("a(3) returns %d\n", A3);
40 return 0;