aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/API/tools/lldb-dap/optimized/main.cpp
blob: cf94bc3e3ea20361a83fd907849fa77e03a02959 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#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;
}