llvm/lldb/test/API/macosx/builtin-debugtrap/main.cpp

#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;
}