32 lines · plain
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.cpp2// RUN: %clang_cc1 -fsyntax-only -std=gnu++98 -fblocks -Wno-address-of-temporary -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp3// RUN: %clang_cc1 -x objective-c++ -Wno-return-type -fblocks -fms-extensions -rewrite-objc %s -o %t-rw-modern.cpp4// RUN: %clang_cc1 -fsyntax-only -std=gnu++98 -fblocks -Wno-address-of-temporary -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw-modern.cpp5 6@interface NSURLResponse {7@public8 NSURLResponse *InnerResponse;9}10@end11 12@interface NSCachedURLResponseInternal 13{14 @public15 NSURLResponse *response;16}17@end18 19@interface NSCachedURLResponse20{21 @private22 NSCachedURLResponseInternal *_internal;23}24- (void) Meth;25@end26 27@implementation NSCachedURLResponse28- (void) Meth {29 _internal->response->InnerResponse = 0;30 }31@end32