diff --git a/clang/test/Index/c-index-api-test.m b/clang/test/Index/c-index-api-test.m index 12167d020ab4edfc80d68e952753e8bb59204b88..20d4d7b45afd5b75f96ceb5eb211bc51abac667a 100644 --- a/clang/test/Index/c-index-api-test.m +++ b/clang/test/Index/c-index-api-test.m @@ -1,4 +1,4 @@ -// RUN: clang -emit-ast %s -o %t.ast && +// RUN: clang-cc -triple x86_64-apple-darwin10 -emit-pch -x objective-c %s -o %t.ast && // RUN: c-index-test %t.ast all | FileCheck %s // CHECK: :0:0: TypedefDecl=__int128_t:0:0 [Context=c-index-api-test.m] @@ -8,13 +8,13 @@ // CHECK: :0:0: ObjCInterfaceDecl=Protocol:0:0 [Context=c-index-api-test.m] // CHECK: :0:0: TypedefDecl=id:0:0 [Context=c-index-api-test.m] // CHECK: :0:0: TypedefDecl=Class:0:0 [Context=c-index-api-test.m] -// CHECK: :80:16: StructDecl=__va_list_tag:80:16 [Context=c-index-api-test.m] -// CHECK: :80:42: FieldDecl=gp_offset:80:42 [Context=__va_list_tag] -// CHECK: :80:63: FieldDecl=fp_offset:80:63 [Context=__va_list_tag] -// CHECK: :80:81: FieldDecl=overflow_arg_area:80:81 [Context=__va_list_tag] -// CHECK: :80:107: FieldDecl=reg_save_area:80:107 [Context=__va_list_tag] -// CHECK: :80:123: TypedefDecl=__va_list_tag:80:123 [Context=c-index-api-test.m] -// CHECK: :80:159: TypedefDecl=__builtin_va_list:80:159 [Context=c-index-api-test.m] +// CHECK: :79:16: StructDecl=__va_list_tag:79:16 [Context=c-index-api-test.m] +// CHECK: :79:42: FieldDecl=gp_offset:79:42 [Context=__va_list_tag] +// CHECK: :79:63: FieldDecl=fp_offset:79:63 [Context=__va_list_tag] +// CHECK: :79:81: FieldDecl=overflow_arg_area:79:81 [Context=__va_list_tag] +// CHECK: :79:107: FieldDecl=reg_save_area:79:107 [Context=__va_list_tag] +// CHECK: :79:123: TypedefDecl=__va_list_tag:79:123 [Context=c-index-api-test.m] +// CHECK: :79:159: TypedefDecl=__builtin_va_list:79:159 [Context=c-index-api-test.m] // @interface Foo