Mercurial > hg > CbC > CbC_llvm
view clang/test/SemaObjC/property-implement-readonly-with-custom-setter.m @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 1d019706d866 |
children |
line wrap: on
line source
// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s // rdar://34192541 @class NSString; @protocol MyProtocol @property (nonatomic, strong, readonly) NSString *myString; @end @interface MyClass <MyProtocol> // Don't warn about this setter: @property (nonatomic, strong, setter=setMYString:) NSString *myString; @property (nonatomic, strong, readonly) NSString *overridenInClass; // expected-note {{property declared here}} @end @interface MySubClass: MyClass @property (nonatomic, strong, setter=setMYOverride:) NSString *overridenInClass; // expected-warning@-1 {{'setter' attribute on property 'overridenInClass' does not match the property inherited from 'MyClass'}} @end