xref: /llvm-project/lldb/test/Shell/Recognizer/Inputs/verbose_trap.cpp (revision 8a27ef676e3c607daede048e5021db18a970aa71)
1 #if !defined(VERBOSE_TRAP_TEST_CATEGORY) || !defined(VERBOSE_TRAP_TEST_MESSAGE)
2 #error Please define required macros
3 #endif
4 
5 struct Dummy {
6   void func() { __builtin_verbose_trap(VERBOSE_TRAP_TEST_CATEGORY, VERBOSE_TRAP_TEST_MESSAGE); }
7 };
8 
9 int main() {
10   Dummy{}.func();
11   return 0;
12 }
13