Benjamin Kramer | f88cd53 | 2012-10-02 09:42:36 +0000 | [diff] [blame] | 1 | // RUN: %clang -target x86_64-unkown-unknown -fms-extensions -rewrite-objc %s -o - | FileCheck %s |
Fariborz Jahanian | ec0df93 | 2012-10-01 23:25:52 +0000 | [diff] [blame] | 2 | // rdar://12189793 |
| 3 | |
| 4 | #ifdef __cplusplus |
| 5 | |
| 6 | void *sel_registerName(const char *); |
| 7 | |
| 8 | @interface Root @end |
| 9 | |
| 10 | @interface MYINTF : Root |
| 11 | @end |
| 12 | |
| 13 | #endif |
| 14 | |
| 15 | @implementation MYINTF |
| 16 | - (id) MYMETH { return [self MYMETH]; } |
| 17 | @end |
| 18 | |
| 19 | int main() { |
| 20 | } |
| 21 | |
| 22 | // CHECK: static struct _class_ro_t _OBJC_CLASS_RO_$_MYINTF |
| 23 | // CHECK-NEXT: 0, 0, 0, |
| 24 | // CHECK-NEXT: (unsigned int)0, |
| 25 | // CHECK-NEXT: 0, |
| 26 | // CHECK-NEXT: "MYINTF", |