aboutsummaryrefslogtreecommitdiff
path: root/test/Index/pch-with-errors.c
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-06-08 05:48:06 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-06-08 05:48:06 +0000
commit374a00bcc6e26b4fc3cd1d378a5d056c4c7d618e (patch)
tree29cc0165be6b097840462ccd0cd1a84f33513319 /test/Index/pch-with-errors.c
parentc18909ebd57608f8bec96dbd5e596c5695fa4045 (diff)
[libclang] Don't crash when saving a PCH from a prefix header
that does not exist. rdar://11607033 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158193 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Index/pch-with-errors.c')
-rw-r--r--test/Index/pch-with-errors.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/Index/pch-with-errors.c b/test/Index/pch-with-errors.c
index be8728eb72..2d396134e5 100644
--- a/test/Index/pch-with-errors.c
+++ b/test/Index/pch-with-errors.c
@@ -38,5 +38,7 @@ void foo(void) {
// CHECK-INDEX: [indexEntityReference]: kind: function | name: erroneous
// RUN: %clang -fsyntax-only %s -include %t.h 2>&1 | FileCheck -check-prefix=PCH-ERR %s
-
// PCH-ERR: error: PCH file contains compiler errors
+
+// RUN: c-index-test -write-pch %t.pch foobar.c 2>&1 | FileCheck -check-prefix=NONEXISTENT %s
+// NONEXISTENT: Unable to load translation unit