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