summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/c-index-pch.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Index/c-index-pch.c')
-rw-r--r--clang/test/Index/c-index-pch.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/clang/test/Index/c-index-pch.c b/clang/test/Index/c-index-pch.c
index 2298c8f207b..aae4eb3669f 100644
--- a/clang/test/Index/c-index-pch.c
+++ b/clang/test/Index/c-index-pch.c
@@ -1,7 +1,14 @@
// RUN: clang-cc -emit-pch -x c -o %t.pch %S/c-index-pch.h &&
// RUN: clang-cc -include-pch %t.pch -x c -emit-pch -o %t.ast %s &&
-// RUN: c-index-test %t.ast all | FileCheck -check-prefix=ALL %s
-// CHECK-ALL: FunctionDecl=foo
-// CHECK-ALL: VarDecl=bar
-// CHECK-ALL: FunctionDecl=wibble
+// RUN: c-index-test %t.ast all | FileCheck -check-prefix=ALL %s &&
+// RUN: c-index-test %t.ast local | FileCheck -check-prefix=LOCAL %s
+// ALL: FunctionDecl=foo
+// ALL: VarDecl=bar
+// ALL: FunctionDecl=wibble
+// ALL: FunctionDecl=wonka
+// LOCAL-NOT: FunctionDecl=foo
+// LOCAL-NOT: VarDecl=bar
+// LOCAL: FunctionDecl=wibble
+// LOCAL: FunctionDecl=wonka
void wibble(int i);
+void wonka(float);
OpenPOWER on IntegriCloud