1 // RUN: %clang_cc1 -x objective-c++ -Wno-return-type -fblocks -fms-extensions -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 %s -o %t-rw.cpp
2 // RUN: %clang_cc1 -Wno-address-of-temporary -DKEEP_ATTRIBUTES -D"id=struct objc_object *" -D"Class=struct objc_class *" -D"SEL=void*" -D"__declspec(X)=" -emit-llvm -o - %t-rw.cpp | FileCheck %t-rw.cpp
4 void *sel_registerName(const char *);
9 @interface __NSCFString : __NSCFType
10 - (const char *)UTF8String;
13 @implementation __NSCFString
14 - (const char *)UTF8String {
15 return (const char *)[super UTF8String];
19 // CHECK: call ptr @class_getSuperclass
26 + (id)allocWithZone:(NSZone *)zone;
30 @interface NSArray : NSObject
33 @implementation NSArray
34 + (id)allocWithZone:(NSZone *)zone {
35 return [super allocWithZone:zone];
47 @interface __NSArray0 : XNSArray
50 @implementation __NSArray0 @end