diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2012-10-01 23:25:52 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2012-10-01 23:25:52 +0000 |
commit | ec0df93e4217673665ec31fb512522e54c7f53a5 (patch) | |
tree | 947949090612e5adf8c4e25d70caddd7e76de841 /test/Rewriter | |
parent | fdcc289fadff3c11c9d44844fb0546e9de0b567e (diff) |
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
Diffstat (limited to 'test/Rewriter')
-rw-r--r-- | test/Rewriter/no-integrated-preprocessing-64bit.m | 28 | ||||
-rw-r--r-- | test/Rewriter/no-integrated-preprocessing.m | 8 |
2 files changed, 28 insertions, 8 deletions
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", |