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 | |
11 | int main() { |
12 | raise(SIGSEGV); |
13 | // CHECK-DUMP: Register values |
14 | // CHECK-NODUMP-NOT: Register values |
15 | return 0; |
16 | } |
17 |