xref: /llvm-project/lldb/test/API/macosx/builtin-debugtrap/main.cpp (revision 885eae9d85de4b1b1907ac9b3ecba26565932069)
1 #include <stdio.h>
2 int global = 0;
main()3 int main()
4 {
5   global = 5; // Set a breakpoint here
6   puts("");
7   __builtin_debugtrap();
8   global = 10;
9   __builtin_trap();
10   global = 15;
11   return global;
12 }
13