1 // RUN: %clang_cc1 -fsyntax-only -verify -Weverything %s 2 // expected-no-diagnostics 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 28