aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/API/tools/lldb-dap/source/main.c
blob: 39420dba7874fe5f6757d30eabc98eef477d7392 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdio.h>

__attribute__((nodebug)) static void add(int i, int j, void handler(int)) {
  handler(i + j);
}

static void handler(int result) {
  printf("result %d\n", result); // breakpoint
}

int main(int argc, char const *argv[]) {
  add(2, 3, handler);
  return 0;
}