summaryrefslogtreecommitdiffstats
path: root/test/Index/crash-recovery-code-complete.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Index/crash-recovery-code-complete.c')
-rw-r--r--test/Index/crash-recovery-code-complete.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Index/crash-recovery-code-complete.c b/test/Index/crash-recovery-code-complete.c
new file mode 100644
index 0000000..a80bdc2
--- /dev/null
+++ b/test/Index/crash-recovery-code-complete.c
@@ -0,0 +1,10 @@
+// RUN: env CINDEXTEST_EDITING=1 \
+// 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
+// CHECK-CODE-COMPLETE-CRASH: Unable to perform code completion!
+//
+// REQUIRES: crash-recovery
+
+#warning parsing original file
OpenPOWER on IntegriCloud