1 // RUN: %clang_cc1 -verify %s
7 @property (readwrite, copy) id d1;
8 @property (readwrite, copy) id d2;
12 @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'}}
13 @property (readwrite, copy) I* d2;
17 typedef signed char BOOL;
19 @protocol EKProtocolCalendar
20 @property (nonatomic, readonly) BOOL allowReminders;
21 @property (atomic, readonly) BOOL allowNonatomicProperty; // expected-note {{property declared here}}
24 @protocol EKProtocolMutableCalendar <EKProtocolCalendar>
30 @interface EKCalendar () <EKProtocolMutableCalendar>
31 @property (nonatomic, assign) BOOL allowReminders;
32 @property (nonatomic, assign) BOOL allowNonatomicProperty; // expected-warning {{'atomic' attribute on property 'allowNonatomicProperty' does not match the property inherited from 'EKProtocolCalendar'}}
35 __attribute__((objc_root_class))
37 @property (nonatomic, readonly, getter=isAvailable) int available; // expected-note{{property declared here}}
41 @property (nonatomic, assign, getter=wasAvailable) int available; // expected-warning{{getter name mismatch between property redeclaration ('wasAvailable') and its original declaration ('isAvailable')}}