diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2013-04-08 18:45:10 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2013-04-08 18:45:10 +0000 |
commit | 809500fc2c13c8173a16b052304d983864e4a1e1 (patch) | |
tree | 4fc2f184c499d106f29a386c452b49e5197bf63d /test/SemaObjC/property-3.m | |
parent | be7c9ec198dcdb5bf73a35bfbb00b3333cb87909 (diff) |
Vendor import of clang trunk r178860:vendor/clang/clang-trunk-r178860
Notes
Notes:
svn path=/vendor/clang/dist/; revision=249261
svn path=/vendor/clang/clang-trunk-r178860/; revision=249262; tag=vendor/clang/clang-trunk-r178860
Diffstat (limited to 'test/SemaObjC/property-3.m')
-rw-r--r-- | test/SemaObjC/property-3.m | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/test/SemaObjC/property-3.m b/test/SemaObjC/property-3.m index 439dc28be9f2..3f82bcc3b7cd 100644 --- a/test/SemaObjC/property-3.m +++ b/test/SemaObjC/property-3.m @@ -9,6 +9,25 @@ @end @interface NOW : I -@property (readonly) id d1; // expected-warning {{attribute 'readonly' of property 'd1' restricts attribute 'readwrite' of property inherited from 'I'}} expected-warning {{property 'd1' 'copy' attribute does not match the property inherited from 'I'}} +@property (readonly) id d1; // expected-warning {{attribute 'readonly' of property 'd1' restricts attribute 'readwrite' of property inherited from 'I'}} expected-warning {{'copy' attribute on property 'd1' does not match the property inherited from 'I'}} @property (readwrite, copy) I* d2; @end + +// rdar://13156292 +typedef signed char BOOL; + +@protocol EKProtocolCalendar +@property (nonatomic, readonly) BOOL allowReminders; +@property (atomic, readonly) BOOL allowNonatomicProperty; // expected-note {{property declared here}} +@end + +@protocol EKProtocolMutableCalendar <EKProtocolCalendar> +@end + +@interface EKCalendar +@end + +@interface EKCalendar () <EKProtocolMutableCalendar> +@property (nonatomic, assign) BOOL allowReminders; +@property (nonatomic, assign) BOOL allowNonatomicProperty; // expected-warning {{'atomic' attribute on property 'allowNonatomicProperty' does not match the property inherited from 'EKProtocolCalendar'}} +@end |