blob: 2037fc58802ca030c85ea0accb9c6f3183c7e22a [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -emit-pch -x c -o %t.pch %S/Inputs/c-index-pch.h
2// RUN: %clang_cc1 -include-pch %t.pch -x c -emit-pch -o %t.ast %s
Ted Kremenekf5d9c932009-11-17 18:09:14 +00003// RUN: c-index-test -test-load-tu %t.ast all | FileCheck -check-prefix=ALL %s
4// RUN: c-index-test -test-load-tu %t.ast local | FileCheck -check-prefix=LOCAL %s
Douglas Gregor7d1d49d2009-10-16 20:01:17 +00005// ALL: FunctionDecl=foo
6// ALL: VarDecl=bar
7// ALL: FunctionDecl=wibble
8// ALL: FunctionDecl=wonka
9// LOCAL-NOT: FunctionDecl=foo
10// LOCAL-NOT: VarDecl=bar
11// LOCAL: FunctionDecl=wibble
12// LOCAL: FunctionDecl=wonka
Douglas Gregor52e71082009-10-16 18:18:30 +000013void wibble(int i);
Douglas Gregor7d1d49d2009-10-16 20:01:17 +000014void wonka(float);