[AMDGPU] Add True16 register classes.
[llvm-project.git] / lldb / test / API / commands / expression / call-function / main.cpp
bloba383ce5c22a0eb1898829161aeb6baaca9f06f48
1 #include <cstring>
2 #include <string>
4 struct Five {
5 int number;
6 const char *name;
7 };
9 Five returnsFive() {
10 Five my_five = {5, "five"};
11 return my_five;
14 unsigned int fib(unsigned int n) {
15 if (n < 2)
16 return n;
17 else
18 return fib(n - 1) + fib(n - 2);
21 int add(int a, int b) { return a + b; }
23 bool stringCompare(const char *str) {
24 if (strcmp(str, "Hello world") == 0)
25 return true;
26 else
27 return false;
30 int main(int argc, char const *argv[]) {
31 std::string str = "Hello world";
32 Five main_five = returnsFive();
33 return strlen(str.c_str()); // break here