[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / test / Rewriter / rewrite-nested-ivar.mm
blob5b8c2ddf08a18ae798719ec388a4a013df40b1ae
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 -std=gnu++98 -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 -std=gnu++98 -fblocks -Wno-address-of-temporary -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw-modern.cpp
6 @interface NSURLResponse {
7 @public
8   NSURLResponse *InnerResponse;
10 @end
12 @interface NSCachedURLResponseInternal 
14     @public
15     NSURLResponse *response;
17 @end
19 @interface NSCachedURLResponse
21     @private
22     NSCachedURLResponseInternal *_internal;
24 - (void) Meth;
25 @end
27 @implementation NSCachedURLResponse
28 - (void) Meth {
29     _internal->response->InnerResponse = 0;
30   }
31 @end