blob: 77efd556928cd4a5237e14f3857a71e67e2df965 [file] [log] [blame]
Fariborz Jahaniana6e28f22012-08-24 20:10:53 +00001// RUN: %clang_cc1 -fsyntax-only -verify -Weverything %s
Andy Gibbs8e8fb3b2012-10-19 12:44:48 +00002// expected-no-diagnostics
Fariborz Jahaniana6e28f22012-08-24 20:10:53 +00003// 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