Fariborz Jahanian | ef2b0d8 | 2010-03-04 23:03:49 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -x objective-c++ -Wno-return-type -fblocks -fms-extensions -rewrite-objc %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 |
Fariborz Jahanian | 7e20ffe | 2010-01-28 01:41:20 +0000 | [diff] [blame] | 3 | // radar 7583971 |
| 4 | |
| 5 | |
| 6 | @interface NSURLResponse { |
| 7 | @public |
| 8 | NSURLResponse *InnerResponse; |
| 9 | } |
| 10 | @end |
| 11 | |
| 12 | @interface NSCachedURLResponseInternal |
| 13 | { |
| 14 | @public |
| 15 | NSURLResponse *response; |
| 16 | } |
| 17 | @end |
| 18 | |
| 19 | @interface NSCachedURLResponse |
| 20 | { |
| 21 | @private |
| 22 | NSCachedURLResponseInternal *_internal; |
| 23 | } |
| 24 | - (void) Meth; |
| 25 | @end |
| 26 | |
| 27 | @implementation NSCachedURLResponse |
| 28 | - (void) Meth { |
| 29 | _internal->response->InnerResponse = 0; |
| 30 | } |
| 31 | @end |