2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -verify %s
|
2008-05-03 03:17:30 +08:00
|
|
|
|
|
|
|
@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;
|
|
|
|
}
|
2009-01-10 05:04:52 +08:00
|
|
|
@property (retain) id MayCauseError; // expected-warning {{property 'MayCauseError' 'copy' attribute does not match the property inherited from 'ProtocolObject'}}
|
2008-05-03 03:17:30 +08:00
|
|
|
@end
|
|
|
|
|