1*67e74705SXin Li// 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*67e74705SXin Li// RUN: %clang_cc1 -fsyntax-only -fblocks -Wno-address-of-temporary -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp 3*67e74705SXin Li// RUN: %clang_cc1 -x objective-c++ -Wno-return-type -fblocks -fms-extensions -rewrite-objc %s -o %t-rw-modern.cpp 4*67e74705SXin Li// RUN: %clang_cc1 -fsyntax-only -fblocks -Wno-address-of-temporary -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw-modern.cpp 5*67e74705SXin Li// radar 7583971 6*67e74705SXin Li 7*67e74705SXin Li 8*67e74705SXin Li@interface NSURLResponse { 9*67e74705SXin Li@public 10*67e74705SXin Li NSURLResponse *InnerResponse; 11*67e74705SXin Li} 12*67e74705SXin Li@end 13*67e74705SXin Li 14*67e74705SXin Li@interface NSCachedURLResponseInternal 15*67e74705SXin Li{ 16*67e74705SXin Li @public 17*67e74705SXin Li NSURLResponse *response; 18*67e74705SXin Li} 19*67e74705SXin Li@end 20*67e74705SXin Li 21*67e74705SXin Li@interface NSCachedURLResponse 22*67e74705SXin Li{ 23*67e74705SXin Li @private 24*67e74705SXin Li NSCachedURLResponseInternal *_internal; 25*67e74705SXin Li} 26*67e74705SXin Li- (void) Meth; 27*67e74705SXin Li@end 28*67e74705SXin Li 29*67e74705SXin Li@implementation NSCachedURLResponse 30*67e74705SXin Li- (void) Meth { 31*67e74705SXin Li _internal->response->InnerResponse = 0; 32*67e74705SXin Li } 33*67e74705SXin Li@end 34