2012-08-25 04:10:53 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify -Weverything %s
|
2013-12-14 02:19:59 +08:00
|
|
|
// expected-no-diagnostics
|
2012-08-25 04:10:53 +08:00
|
|
|
// rdar://12103434
|
|
|
|
|
|
|
|
@class NSString;
|
|
|
|
|
|
|
|
@interface NSObject @end
|
|
|
|
|
|
|
|
@interface MyClass : NSObject
|
|
|
|
|
2013-12-14 02:19:59 +08:00
|
|
|
@property (nonatomic, copy, readonly) NSString* name;
|
2012-08-25 04:10:53 +08:00
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface MyClass () {
|
|
|
|
NSString* _name;
|
|
|
|
}
|
|
|
|
|
|
|
|
@property (nonatomic, copy) NSString* name;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation MyClass
|
|
|
|
|
|
|
|
@synthesize name = _name;
|
|
|
|
|
|
|
|
@end
|