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