Fariborz Jahanian | a6e28f2 | 2012-08-24 20:10:53 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify -Weverything %s |
Andy Gibbs | 8e8fb3b | 2012-10-19 12:44:48 +0000 | [diff] [blame^] | 2 | // expected-no-diagnostics |
Fariborz Jahanian | a6e28f2 | 2012-08-24 20:10:53 +0000 | [diff] [blame] | 3 | // rdar://12103434 |
| 4 | |
| 5 | @class NSString; |
| 6 | |
| 7 | @interface NSObject @end |
| 8 | |
| 9 | @interface MyClass : NSObject |
| 10 | |
| 11 | @property (nonatomic, copy, readonly) NSString* name; |
| 12 | |
| 13 | @end |
| 14 | |
| 15 | @interface MyClass () { |
| 16 | NSString* _name; |
| 17 | } |
| 18 | |
| 19 | @property (nonatomic, copy) NSString* name; |
| 20 | |
| 21 | @end |
| 22 | |
| 23 | @implementation MyClass |
| 24 | |
| 25 | @synthesize name = _name; |
| 26 | |
| 27 | @end |