1// Check that sanitizer prints registers dump_registers on dump_registers=1
2// RUN: %clangxx %s -o %t
3// RUN: %env_tool_opts=dump_registers=0 %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-NODUMP
4// RUN: %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-DUMP
5//
6// FIXME: Implement.
7// XFAIL: *
8
9#include <signal.h>
10
11int main() {
12 raise(SIGSEGV);
13 // CHECK-DUMP: Register values
14 // CHECK-NODUMP-NOT: Register values
15 return 0;
16}
17

source code of compiler-rt/test/sanitizer_common/TestCases/Posix/dump_registers.cpp