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