blob: 56db28274c1a8f5de49c14e4999c3ffca0af1187 [file] [log] [blame]
Daniel Dunbard7d5f022009-03-24 02:24:46 +00001// RUN: clang-cc -verify %s
Fariborz Jahanianaebf0cb2008-05-02 19:17:30 +00002
3@interface Object
4@end
5
6@protocol ProtocolObject
7@property int class;
8@property (copy) id MayCauseError;
9@end
10
11@protocol ProtocolDerivedGCObject <ProtocolObject>
12@property int Dclass;
13@end
14
15@interface GCObject : Object <ProtocolDerivedGCObject> {
16 int ifield;
17 int iOwnClass;
18 int iDclass;
19}
20@property int OwnClass;
21@end
22
23@interface ReleaseObject : GCObject <ProtocolObject> {
24 int newO;
25 int oldO;
26}
Fariborz Jahaniana66793e2009-01-09 21:04:52 +000027@property (retain) id MayCauseError; // expected-warning {{property 'MayCauseError' 'copy' attribute does not match the property inherited from 'ProtocolObject'}}
Fariborz Jahanianaebf0cb2008-05-02 19:17:30 +000028@end
29