Fariborz Jahanian | 9e0393d | 2012-02-04 19:06:06 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -x objective-c++ -Wno-return-type -fblocks -fms-extensions -rewrite-objc -fobjc-fragile-abi %s -o %t-rw.cpp |
Fariborz Jahanian | ef2b0d8 | 2010-03-04 23:03:49 +0000 | [diff] [blame] | 2 | // RUN: %clang_cc1 -fsyntax-only -fblocks -Wno-address-of-temporary -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp |
Fariborz Jahanian | 72c88f1 | 2012-02-22 18:13:25 +0000 | [diff] [blame] | 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 |
Fariborz Jahanian | 7e20ffe | 2010-01-28 01:41:20 +0000 | [diff] [blame] | 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 |