Fariborz Jahanian | fa43239 | 2010-10-14 21:30:10 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
| 2 | // rdar: //8550657 |
| 3 | |
| 4 | @interface NSArray @end |
| 5 | |
| 6 | @interface NSMutableArray : NSArray @end |
| 7 | |
| 8 | @interface MyClass |
| 9 | { |
| 10 | NSMutableArray * _array; |
| 11 | } |
| 12 | |
| 13 | @property (readonly) NSArray * array; |
| 14 | |
| 15 | @end |
| 16 | |
| 17 | @interface MyClass () |
| 18 | |
| 19 | @property (readwrite) NSMutableArray * array; |
| 20 | |
| 21 | @end |
| 22 | |
| 23 | @implementation MyClass |
| 24 | |
Fariborz Jahanian | 0313f44 | 2010-10-15 22:42:59 +0000 | [diff] [blame] | 25 | @synthesize array=_array; |
Fariborz Jahanian | fa43239 | 2010-10-14 21:30:10 +0000 | [diff] [blame] | 26 | |
| 27 | @end |
| 28 | |
| 29 | int main(void) |
| 30 | { |
| 31 | return 0; |
| 32 | } |