Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Index / crash-recovery.c
blob5e1da41076dae4e51b0f80146632cb36c757acf4
1 // RUN: export LSAN_OPTIONS=detect_leaks=0
2 // RUN: not c-index-test -test-load-source all %s 2> %t.err
3 // RUN: FileCheck < %t.err -check-prefix=CHECK-LOAD-SOURCE-CRASH %s
4 // CHECK-LOAD-SOURCE-CRASH: Unable to load translation unit
5 // RUN: env LIBCLANG_DISABLE_CRASH_RECOVERY=1 not --crash c-index-test -test-load-source all %s
6 //
7 // REQUIRES: crash-recovery
8 // UNSUPPORTED: libstdcxx-safe-mode
10 #pragma clang __debug crash