bolt/deps/llvm-18.1.8/lldb/test/API/tools/lldb-dap/optimized/main.cpp
2025-02-14 19:21:04 +01:00

14 lines
310 B
C++

#include <stdio.h>
#include <string>
int foo(int x, int y) {
printf("Got input %d, %d\n", x, y);
return x + y + 3; // breakpoint 1
}
int main(int argc, char const *argv[]) {
printf("argc: %d\n", argc);
int result = foo(20, argv[0][0]);
printf("result: %d\n", result); // breakpoint 2
return 0;
}