From ec0df93e4217673665ec31fb512522e54c7f53a5 Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Mon, 1 Oct 2012 23:25:52 +0000 Subject: [PATCH] Modern translator test. Breakup test into two and skip the x86_64 version for mingw32 and win32. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164977 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../no-integrated-preprocessing-64bit.m | 28 +++++++++++++++++++ test/Rewriter/no-integrated-preprocessing.m | 8 ------ 2 files changed, 28 insertions(+), 8 deletions(-) create mode 100644 test/Rewriter/no-integrated-preprocessing-64bit.m diff --git a/test/Rewriter/no-integrated-preprocessing-64bit.m b/test/Rewriter/no-integrated-preprocessing-64bit.m new file mode 100644 index 0000000000..6cb5011de8 --- /dev/null +++ b/test/Rewriter/no-integrated-preprocessing-64bit.m @@ -0,0 +1,28 @@ +// RUN: %clang -arch x86_64 -fms-extensions -rewrite-objc %s -o %t-rw-64bit.cpp +// RUN: FileCheck %s < %t-rw-64bit.cpp +// XFAIL: mingw32,win32 +// rdar://12189793 + +#ifdef __cplusplus + +void *sel_registerName(const char *); + +@interface Root @end + +@interface MYINTF : Root +@end + +#endif + +@implementation MYINTF +- (id) MYMETH { return [self MYMETH]; } +@end + +int main() { +} + +// CHECK: static struct _class_ro_t _OBJC_CLASS_RO_$_MYINTF +// CHECK-NEXT: 0, 0, 0, +// CHECK-NEXT: (unsigned int)0, +// CHECK-NEXT: 0, +// CHECK-NEXT: "MYINTF", diff --git a/test/Rewriter/no-integrated-preprocessing.m b/test/Rewriter/no-integrated-preprocessing.m index c14d7557e0..e4cc301ab4 100644 --- a/test/Rewriter/no-integrated-preprocessing.m +++ b/test/Rewriter/no-integrated-preprocessing.m @@ -1,7 +1,5 @@ // RUN: %clang -arch i386 -fms-extensions -rewrite-objc %s -o %t-rw.cpp // RUN: FileCheck %s < %t-rw.cpp -// RUN: %clang -arch x86_64 -fms-extensions -rewrite-objc %s -o %t-rw-64bit.cpp -// RUN: FileCheck -check-prefix=LP64 %s < %t-rw-64bit.cpp // rdar://12189793 #ifdef __cplusplus @@ -26,9 +24,3 @@ int main() { // CHECK-NEXT: 0, 0, 0, // CHECK-NEXT: 0, // CHECK-NEST: "MYINTF", - -// CHECK-LP64: static struct _class_ro_t _OBJC_CLASS_RO_$_MYINTF -// CHECK-LP64-NEXT: 0, 0, 0, -// CHECK-LP64-NEXT: (unsigned int)0, -// CHECK-LP64-NEXT: 0, -// CHECK-LP64-NEST: "MYINTF", -- 2.40.0