xref: /minix3/external/bsd/llvm/dist/clang/test/Index/cindex-from-source.m (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc// REQUIRES: native
2*f4a2713aSLionel Sambuc// RUN: %clang -x objective-c-header %S/Inputs/cindex-from-source.h -o %t.pfx.h.gch
3*f4a2713aSLionel Sambuc// RUN: c-index-test -test-load-source local %s -include %t.pfx.h > %t
4*f4a2713aSLionel Sambuc// RUN: FileCheck %s < %t
5*f4a2713aSLionel Sambuc// CHECK: cindex-from-source.m:{{.*}}:{{.*}}: StructDecl=s0:{{.*}}:{{.*}}
6*f4a2713aSLionel Sambuc// CHECK: cindex-from-source.m:{{.*}}:{{.*}}: VarDecl=g0:{{.*}}:{{.*}}
7*f4a2713aSLionel Sambuc// CHECK: cindex-from-source.m:9:1: TypeRef=t0:1:13 Extent=[9:1 - 9:3]
8*f4a2713aSLionel Sambucstruct s0 {};
9*f4a2713aSLionel Sambuct0 g0;
10*f4a2713aSLionel Sambuc
11*f4a2713aSLionel Sambuc// RUN: c-index-test -test-load-source-reparse 5 local %s -include %t.pfx.h > %t
12*f4a2713aSLionel Sambuc// RUN: FileCheck %s < %t
13