1 // RUN: %clang_cc1 -no-opaque-pointers -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 -no-opaque-pointers -fsyntax-only -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
5 void *sel_registerName(const char *);
10 @interface __NSCFString : __NSCFType
11 - (const char *)UTF8String;
14 @implementation __NSCFString
15 - (const char *)UTF8String {
16 return (const char *)[super UTF8String];
20 // CHECK: call %struct.objc_class* @class_getSuperclass
27 + (id)allocWithZone:(NSZone *)zone;
31 @interface NSArray : NSObject
34 @implementation NSArray
35 + (id)allocWithZone:(NSZone *)zone {
36 return [super allocWithZone:zone];
48 @interface __NSArray0 : XNSArray
51 @implementation __NSArray0 @end