1 // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
7 @property (nonatomic, strong, readonly) NSString *myString;
10 @interface MyClass <MyProtocol>
11 // Don't warn about this setter:
12 @property (nonatomic, strong, setter=setMYString:) NSString *myString;
15 @property (nonatomic, strong, readonly) NSString *overridenInClass; // expected-note {{property declared here}}
18 @interface MySubClass: MyClass
19 @property (nonatomic, strong, setter=setMYOverride:) NSString *overridenInClass;
20 // expected-warning@-1 {{'setter' attribute on property 'overridenInClass' does not match the property inherited from 'MyClass'}}