f4a2713ac8
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
33 lines
1.1 KiB
Objective-C
33 lines
1.1 KiB
Objective-C
// RUN: %clang_cc1 -verify %s
|
|
|
|
@interface I
|
|
{
|
|
id d1;
|
|
}
|
|
@property (readwrite, copy) id d1;
|
|
@property (readwrite, copy) id d2;
|
|
@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 {{'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
|