You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
620 B
30 lines
620 B
4 months ago
|
// RUN: %clang_cc1 -verify %s
|
||
|
|
||
|
@interface Object
|
||
|
@end
|
||
|
|
||
|
@protocol ProtocolObject
|
||
|
@property int class;
|
||
|
@property (copy) id MayCauseError;
|
||
|
@end
|
||
|
|
||
|
@protocol ProtocolDerivedGCObject <ProtocolObject>
|
||
|
@property int Dclass;
|
||
|
@end
|
||
|
|
||
|
@interface GCObject : Object <ProtocolDerivedGCObject> {
|
||
|
int ifield;
|
||
|
int iOwnClass;
|
||
|
int iDclass;
|
||
|
}
|
||
|
@property int OwnClass;
|
||
|
@end
|
||
|
|
||
|
@interface ReleaseObject : GCObject <ProtocolObject> {
|
||
|
int newO;
|
||
|
int oldO;
|
||
|
}
|
||
|
@property (retain) id MayCauseError; // expected-warning {{'copy' attribute on property 'MayCauseError' does not match the property inherited from 'ProtocolObject'}}
|
||
|
@end
|
||
|
|