aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/API/macosx/builtin-debugtrap/main.cpp
blob: 84332d800148f153d389f135479995fce2f1b896 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdio.h>
int global = 0;
int main()
{
  global = 5; // Set a breakpoint here
  puts("");
  __builtin_debugtrap();
  global = 10;
  __builtin_trap();
  global = 15;
  return global;
}