Files
clang-p2996/lldb/lit/Reproducer/Functionalities/Inputs/stepping.c
Jonas Devlieghere ae5d62585e [Reproducers] Add tests for different types of functionality
This patch adds test that check that functionality in lldb continues to
work when replaying a reproducer.

 - Entries in image list are identical.
 - That stepping behaves the same.
 - That the data formatters behave the same.

Differential revision: https://reviews.llvm.org/D55626

llvm-svn: 355570
2019-03-07 00:24:44 +00:00

38 lines
555 B
C

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;
}