cindex-from-source.m revision 632d4b310f3748573b2cb6b9c4d673fc336b57f8
1// RUN: echo 'typedef int t0;' > %t.pfx.h
2// RUN: clang -x objective-c-header %t.pfx.h -o %t.pfx.h.gch
3// 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]
7// XFAIL: win32
8
9struct s0 {};
10t0 g0;
11