Modern translator test. Breakup test into two and

skip the x86_64 version for mingw32 and win32.

llvm-svn: 164977
This commit is contained in:
Fariborz Jahanian 2012-10-01 23:25:52 +00:00
parent e861d43f65
commit e2a9d42297
2 changed files with 28 additions and 8 deletions

View File

@ -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",

View File

@ -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",