Allow resolving headers from a PCH even after headers+PCH were moved to another path.
[clang.git] / test / Index / cindex-from-source.m
blobf226e45335306c6ea455f87e636767f7ee5e592f
2 // RUN: %clang -x objective-c-header %S/Inputs/cindex-from-source.h -o %t.pfx.h.gch
3 // RUN: c-index-test -test-load-source local %s -include %t.pfx.h > %t
4 // RUN: FileCheck %s < %t
5 // CHECK: cindex-from-source.m:{{.*}}:{{.*}}: StructDecl=s0:{{.*}}:{{.*}}
6 // CHECK: cindex-from-source.m:{{.*}}:{{.*}}: VarDecl=g0:{{.*}}:{{.*}}
7 // CHECK: cindex-from-source.m:9:1: TypeRef=t0:1:13 Extent=[9:1 - 9:3]
8 struct s0 {};
9 t0 g0;
11 // RUN: c-index-test -test-load-source-reparse 5 local %s -include %t.pfx.h > %t
12 // RUN: FileCheck %s < %t