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