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-reparse.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 clang/test/Index/crash-recovery-reparse.c (limited to 'clang/test/Index/crash-recovery-reparse.c') diff --git a/clang/test/Index/crash-recovery-reparse.c b/clang/test/Index/crash-recovery-reparse.c new file mode 100644 index 0000000..06bb76b --- /dev/null +++ b/clang/test/Index/crash-recovery-reparse.c @@ -0,0 +1,12 @@ +// RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_PREAMBLE_FILE=%t-preamble.pch \ +// RUN: not c-index-test -test-load-source-reparse 1 local \ +// RUN: -remap-file="%s;%S/Inputs/crash-recovery-reparse-remap.c" \ +// RUN: %s 2> %t.err +// RUN: FileCheck < %t.err -check-prefix=CHECK-REPARSE-SOURCE-CRASH %s +// RUN: test ! -e $t-preamble.pch +// CHECK-REPARSE-SOURCE-CRASH: Unable to reparse translation unit +// +// REQUIRES: crash-recovery +// REQUIRES: shell + +#warning parsing original file -- cgit v1.2.3