summaryrefslogtreecommitdiff
path: root/clang/test/Index/crash-recovery-code-complete.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Index/crash-recovery-code-complete.c')
-rw-r--r--clang/test/Index/crash-recovery-code-complete.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/Index/crash-recovery-code-complete.c b/clang/test/Index/crash-recovery-code-complete.c
new file mode 100644
index 0000000..dde90bc
--- /dev/null
+++ b/clang/test/Index/crash-recovery-code-complete.c
@@ -0,0 +1,12 @@
+// RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_PREAMBLE_FILE=%t-preamble.pch \
+// RUN: not c-index-test -code-completion-at=%s:20:1 \
+// RUN: "-remap-file=%s;%S/Inputs/crash-recovery-code-complete-remap.c" \
+// RUN: %s 2> %t.err
+// RUN: FileCheck < %t.err -check-prefix=CHECK-CODE-COMPLETE-CRASH %s
+// RUN: test ! -e %t-preamble.pch
+// CHECK-CODE-COMPLETE-CRASH: Unable to perform code completion!
+//
+// REQUIRES: crash-recovery
+// REQUIRES: shell
+
+#warning parsing original file