Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / test / sanitizer_common / TestCases / Posix / dump_registers.cpp
blobf09b2bf4447cc37993b727cc79690ef7612482ec
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: *
9 #include <signal.h>
11 int main() {
12 raise(SIGSEGV);
13 // CHECK-DUMP: Register values
14 // CHECK-NODUMP-NOT: Register values
15 return 0;