blob: 6c5d936e20661990a01f1d78d0ae60a0a50b0e07 [file] [log] [blame]
Daniel Dunbarf772d1e2009-12-04 08:17:33 +00001// RUN: echo 'typedef int t0;' > %t.pfx.h
Daniel Dunbar80737ad2009-12-15 22:01:24 +00002// RUN: %clang -x objective-c-header %t.pfx.h -o %t.pfx.h.gch
Daniel Dunbarf772d1e2009-12-04 08:17:33 +00003// RUN: c-index-test -test-load-source local %s -include %t.pfx.h > %t
4// RUN: FileCheck %s < %t
Ted Kremenekcf84aa42010-01-18 20:23:29 +00005// CHECK: cindex-from-source.m:{{.*}}:{{.*}}: StructDecl=s0:{{.*}}:{{.*}}
6// CHECK: cindex-from-source.m:{{.*}}:{{.*}}: VarDecl=g0:{{.*}}:{{.*}}
Daniel Dunbar8f0bf812010-02-14 08:32:51 +00007// CHECK: cindex-from-source.m:9:1: TypeRef=t0:1:13 Extent=[9:1 - 9:3]
Daniel Dunbarf772d1e2009-12-04 08:17:33 +00008struct s0 {};
9t0 g0;