blob: aae4eb3669fc077be25fc26994c62295fb7add5a [file] [log] [blame]
Douglas Gregord2eb58a2009-10-16 18:18:30 +00001// RUN: clang-cc -emit-pch -x c -o %t.pch %S/c-index-pch.h &&
2// RUN: clang-cc -include-pch %t.pch -x c -emit-pch -o %t.ast %s &&
Douglas Gregor16bef852009-10-16 20:01:17 +00003// RUN: c-index-test %t.ast all | FileCheck -check-prefix=ALL %s &&
4// RUN: c-index-test %t.ast local | FileCheck -check-prefix=LOCAL %s
5// 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 Gregord2eb58a2009-10-16 18:18:30 +000013void wibble(int i);
Douglas Gregor16bef852009-10-16 20:01:17 +000014void wonka(float);