]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/Index/c-index-pch.c
Update clang to r89337.
[FreeBSD/FreeBSD.git] / test / Index / c-index-pch.c
1 // RUN: clang-cc -emit-pch -x c -o %t.pch %S/Inputs/c-index-pch.h
2 // RUN: clang-cc -include-pch %t.pch -x c -emit-pch -o %t.ast %s
3 // 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
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
13 void wibble(int i);
14 void wonka(float);