blob: 56db28274c1a8f5de49c14e4999c3ffca0af1187 [file] [log] [blame]
// RUN: clang-cc -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 {{property 'MayCauseError' 'copy' attribute does not match the property inherited from 'ProtocolObject'}}
@end