2013-09-13 19:02:31 +08:00
|
|
|
// REQUIRES: native
|
2015-08-06 01:23:59 +08:00
|
|
|
// RUN: c-index-test -write-pch %t.pfx.h.gch -x objective-c-header %S/Inputs/cindex-from-source.h
|
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
|