xref: /minix3/external/bsd/llvm/dist/clang/test/Index/crash-recovery-code-complete.c (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1f4a2713aSLionel Sambuc // RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_PREAMBLE_FILE=%t-preamble.pch \
2f4a2713aSLionel Sambuc // RUN:   not c-index-test -code-completion-at=%s:20:1 \
3*0a6a1f1dSLionel Sambuc // RUN:   "-remap-file=%s,%S/Inputs/crash-recovery-code-complete-remap.c" \
4f4a2713aSLionel Sambuc // RUN:   %s 2> %t.err
5f4a2713aSLionel Sambuc // RUN: FileCheck < %t.err -check-prefix=CHECK-CODE-COMPLETE-CRASH %s
6f4a2713aSLionel Sambuc // RUN: test ! -e %t-preamble.pch
7f4a2713aSLionel Sambuc // CHECK-CODE-COMPLETE-CRASH: Unable to perform code completion!
8f4a2713aSLionel Sambuc //
9f4a2713aSLionel Sambuc // REQUIRES: crash-recovery
10f4a2713aSLionel Sambuc 
11f4a2713aSLionel Sambuc // FIXME: Please investigate abnormal path in MemoryBuffer.
12*0a6a1f1dSLionel Sambuc // REQUIRES: can-remove-opened-file
13f4a2713aSLionel Sambuc 
14f4a2713aSLionel Sambuc #warning parsing original file
15