2010-03-03 08:03:22 +08:00
|
|
|
|
|
|
|
// RUN: %clang -x objective-c-header %S/Inputs/cindex-from-source.h -o %t.pfx.h.gch
|
2009-12-04 16:17:33 +08:00
|
|
|
// RUN: c-index-test -test-load-source local %s -include %t.pfx.h > %t
|
|
|
|
// RUN: FileCheck %s < %t
|
2010-01-19 04:23:29 +08:00
|
|
|
// CHECK: cindex-from-source.m:{{.*}}:{{.*}}: StructDecl=s0:{{.*}}:{{.*}}
|
|
|
|
// CHECK: cindex-from-source.m:{{.*}}:{{.*}}: VarDecl=g0:{{.*}}:{{.*}}
|
2010-02-14 16:32:51 +08:00
|
|
|
// CHECK: cindex-from-source.m:9:1: TypeRef=t0:1:13 Extent=[9:1 - 9:3]
|
2009-12-04 16:17:33 +08:00
|
|
|
struct s0 {};
|
|
|
|
t0 g0;
|
2010-07-20 05:46:24 +08:00
|
|
|
|
|
|
|
// RUN: c-index-test -test-load-source-reparse 5 local %s -include %t.pfx.h > %t
|
|
|
|
// RUN: FileCheck %s < %t
|