diff options
Diffstat (limited to 'test/SemaObjC/property-10.m')
-rw-r--r-- | test/SemaObjC/property-10.m | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/SemaObjC/property-10.m b/test/SemaObjC/property-10.m index e89d68e..51eb39c 100644 --- a/test/SemaObjC/property-10.m +++ b/test/SemaObjC/property-10.m @@ -37,3 +37,12 @@ @property(nonatomic,copy) int (*PROP1)(); // expected-error {{property with 'copy' attribute must be of object type}} @property(nonatomic,weak) int (*PROP2)(); // expected-error {{property with 'weak' attribute must be of object type}} @end + +// rdar://10357768 +@interface rdar10357768 +{ + int n1; +} +@property (readonly, setter=crushN1:) int n1; // expected-warning {{setter cannot be specified for a readonly property}} +@end + |