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