mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-26 06:48:51 -04:00

property declaration has a memory management attribute (retain, copy, etc.). Sich properties are usually overridden to become 'readwrite' via a class extension (which require the memory management attribute specified). In the absence of class extension override, memory management attribute is needed to produce correct Code Gen. for the property getter in any case and this warning becomes confusing to user. // rdar://15641300 llvm-svn: 197251
28 lines
398 B
Objective-C
28 lines
398 B
Objective-C
// RUN: %clang_cc1 -fsyntax-only -verify -Weverything %s
|
|
// expected-no-diagnostics
|
|
// 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
|