1 // RUN: %clang_cc1 -x objective-c++ -Wno-return-type -fms-extensions -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 %s -o %t-rw.cpp
2 // RUN: %clang_cc1 -fsyntax-only -std=gnu++98 -Wno-address-of-temporary -D_Bool=bool -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp
3 // RUN: %clang_cc1 -x objective-c++ -Wno-return-type -fms-extensions -rewrite-objc %s -o %t-modern-rw.cpp
4 // RUN: %clang_cc1 -fsyntax-only -std=gnu++98 -Wno-address-of-temporary -D_Bool=bool -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-modern-rw.cpp
7 typedef struct objc_class *Class;
8 typedef unsigned NSPointerFunctionsOptions;
9 extern "C" id NSClassFromObject(id object);
10 void *sel_registerName(const char *);
16 @interface NSConcretePointerFunctions {
20 - (bool)initializeSlice:(struct NSSlice *)slicep withOptions:(NSPointerFunctionsOptions)options;
23 @implementation NSConcretePointerFunctions
24 - (id)initWithOptions:(NSPointerFunctionsOptions)options {
25 if (![NSClassFromObject(self) initializeSlice:&slice withOptions:options])
29 - (bool)initializeSlice:(struct NSSlice *)slicep withOptions:(NSPointerFunctionsOptions)options {