aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/Shell/Recognizer/Inputs/verbose_trap.cpp
blob: 89962b5437998056724dfc2b86672c77b7f01963 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#if !defined(VERBOSE_TRAP_TEST_CATEGORY) || !defined(VERBOSE_TRAP_TEST_MESSAGE)
#error Please define required macros
#endif

struct Dummy {
  void func() { __builtin_verbose_trap(VERBOSE_TRAP_TEST_CATEGORY, VERBOSE_TRAP_TEST_MESSAGE); }
};

int main() {
  Dummy{}.func();
  return 0;
}