Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Index / crash-recovery-code-complete.c
blobe7454c6f610223e5ab6792e75e05e339f9fb12da
1 // RUN: export LSAN_OPTIONS=detect_leaks=0
2 // RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_PREAMBLE_FILE=%t-preamble.pch \
3 // RUN: not c-index-test -code-completion-at=%s:20:1 \
4 // RUN: "-remap-file=%s,%S/Inputs/crash-recovery-code-complete-remap.c" \
5 // RUN: %s 2> %t.err
6 // RUN: FileCheck < %t.err -check-prefix=CHECK-CODE-COMPLETE-CRASH %s
7 // RUN: test ! -e %t-preamble.pch
8 // CHECK-CODE-COMPLETE-CRASH: Unable to perform code completion!
9 //
10 // REQUIRES: crash-recovery
12 // FIXME: Please investigate abnormal path in MemoryBuffer.
13 // REQUIRES: can-remove-opened-file
14 // UNSUPPORTED: libstdcxx-safe-mode
16 #warning parsing original file