blob: 07fc2f51b40416cddc12bbf5815daa8ea4a03db4 [file] [log] [blame]
John McCall260611a2012-06-20 06:18:46 +00001// 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
Fariborz Jahanianef2b0d82010-03-04 23:03:49 +00002// RUN: %clang_cc1 -fsyntax-only -fblocks -Wno-address-of-temporary -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp
Fariborz Jahanian72c88f12012-02-22 18:13:25 +00003// 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
Fariborz Jahanian7e20ffe2010-01-28 01:41:20 +00005// 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