Fariborz Jahanian | 88b6c4b | 2012-10-01 20:55:56 +0000 | [diff] [blame] | 1 | // RUN: %clang -arch i386 -fms-extensions -rewrite-objc %s -o %t-rw.cpp |
| 2 | // RUN: FileCheck %s < %t-rw.cpp |
Fariborz Jahanian | 88b6c4b | 2012-10-01 20:55:56 +0000 | [diff] [blame] | 3 | // rdar://12189793 |
| 4 | |
| 5 | #ifdef __cplusplus |
| 6 | |
| 7 | void *sel_registerName(const char *); |
| 8 | |
| 9 | @interface Root @end |
| 10 | |
| 11 | @interface MYINTF : Root |
| 12 | @end |
| 13 | |
| 14 | #endif |
| 15 | |
| 16 | @implementation MYINTF |
| 17 | - (id) MYMETH { return [self MYMETH]; } |
| 18 | @end |
| 19 | |
| 20 | int main() { |
| 21 | } |
| 22 | |
| 23 | // CHECK: static struct _class_ro_t _OBJC_CLASS_RO_$_MYINTF |
| 24 | // CHECK-NEXT: 0, 0, 0, |
| 25 | // CHECK-NEXT: 0, |
| 26 | // CHECK-NEST: "MYINTF", |