xref: /llvm-project/lldb/test/API/tools/lldb-dap/optimized/main.cpp (revision 01263c6c6fb495a94fe0ccbb1420bb1ec8460748)
1 #include <stdio.h>
2 #include <string>
3 
foo(int x,int y)4 int foo(int x, int y) {
5   printf("Got input %d, %d\n", x, y);
6   return x + y + 3; // breakpoint 1
7 }
8 
main(int argc,char const * argv[])9 int main(int argc, char const *argv[]) {
10   printf("argc: %d\n", argc);
11   int result = foo(20, argv[0][0]);
12   printf("result: %d\n", result); // breakpoint 2
13   return 0;
14 }
15