diff options
Diffstat (limited to 'lldb/test/Shell/Reproducer/Functionalities/Inputs/stepping.c')
-rw-r--r-- | lldb/test/Shell/Reproducer/Functionalities/Inputs/stepping.c | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/lldb/test/Shell/Reproducer/Functionalities/Inputs/stepping.c b/lldb/test/Shell/Reproducer/Functionalities/Inputs/stepping.c new file mode 100644 index 00000000000..7b56eb22193 --- /dev/null +++ b/lldb/test/Shell/Reproducer/Functionalities/Inputs/stepping.c @@ -0,0 +1,37 @@ +int a(int); +int b(int); +int c(int); +int complex(int, int, int); + +int a(int val) { + int return_value = val; + + if (val <= 1) { + return_value = b(val); + } else if (val >= 3) { + return_value = c(val); + } + + return return_value; +} + +int b(int val) { + int rc = c(val); + return rc; +} + +int c(int val) { return val + 3; } + +int complex(int first, int second, int third) { return first + second + third; } + +int main(int argc, char const *argv[]) { + int A1 = a(1); + + int B2 = b(2); + + int A3 = a(3); + + int A4 = complex(a(1), b(2), c(3)); + + return 0; +} |