From 222e2a7620e6520ffaf4fc4e69d79c18da31542e Mon Sep 17 00:00:00 2001 From: "Zancanaro; Carlo" Date: Mon, 24 Sep 2012 09:58:17 +1000 Subject: Add the clang library to the repo (with some of my changes, too). --- clang/test/Index/crash-recovery-code-complete.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 clang/test/Index/crash-recovery-code-complete.c (limited to 'clang/test/Index/crash-recovery-code-complete.c') 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 -- cgit v1.2.3