blob: e775bb71e11ec80cbf8f3b2a39be6df541cadbcd [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
5// CHECK: cindex-from-source.m:{{.*}}:{{.*}}: StructDecl=s0:{{.*}}:{{.*}} [Context=cindex-from-source.m]
6// CHECK: cindex-from-source.m:{{.*}}:{{.*}}: VarDecl=g0:{{.*}}:{{.*}} [Context=cindex-from-source.m]
Daniel Dunbarf772d1e2009-12-04 08:17:33 +00007
8struct s0 {};
9t0 g0;