blob: 07e87bedc131c6038c22e30d08fae764891643d7 [file] [log] [blame]
// Check that sanitizer prints registers dump_registers on dump_registers=1
// RUN: %clangxx %s -o %t
// RUN: %env_tool_opts=dump_registers=0 %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-NODUMP
// RUN: %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-DUMP
//
// FIXME: Implement.
// UNSUPPORTED: asan
// UNSUPPORTED: lsan
// UNSUPPORTED: msan
// UNSUPPORTED: tsan
// UNSUPPORTED: ubsan
#include <signal.h>
int main() {
raise(SIGSEGV);
// CHECK-DUMP: Register values
// CHECK-NODUMP-NOT: Register values
return 0;
}