blob: 504d90fd2bc9e981db89726a7080158c1c3e7f3a [file] [log] [blame]
Amaury de la Vieuville7681afd2013-09-13 11:02:31 +00001// REQUIRES: native
Douglas Gregora75600b2010-03-03 00:03:22 +00002// RUN: %clang -x objective-c-header %S/Inputs/cindex-from-source.h -o %t.pfx.h.gch
Daniel Dunbar644dca02009-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 Kremenek473c7a72010-01-18 20:23:29 +00005// CHECK: cindex-from-source.m:{{.*}}:{{.*}}: StructDecl=s0:{{.*}}:{{.*}}
6// CHECK: cindex-from-source.m:{{.*}}:{{.*}}: VarDecl=g0:{{.*}}:{{.*}}
Daniel Dunbar6092d502010-02-14 08:32:51 +00007// CHECK: cindex-from-source.m:9:1: TypeRef=t0:1:13 Extent=[9:1 - 9:3]
Daniel Dunbar644dca02009-12-04 08:17:33 +00008struct s0 {};
9t0 g0;
Douglas Gregoraa21cc42010-07-19 21:46:24 +000010
11// RUN: c-index-test -test-load-source-reparse 5 local %s -include %t.pfx.h > %t
12// RUN: FileCheck %s < %t