blob: 439dc28be9f204431e94aa04210a7945bf0ffa34 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -verify %s
Fariborz Jahaniandaa03112008-05-06 18:14:26 +00002
3@interface I
4{
5 id d1;
6}
7@property (readwrite, copy) id d1;
8@property (readwrite, copy) id d2;
9@end
10
11@interface NOW : I
Fariborz Jahanian567c8df2008-12-06 01:12:43 +000012@property (readonly) id d1; // expected-warning {{attribute 'readonly' of property 'd1' restricts attribute 'readwrite' of property inherited from 'I'}} expected-warning {{property 'd1' 'copy' attribute does not match the property inherited from 'I'}}
Steve Naroff184671b2009-03-03 15:49:23 +000013@property (readwrite, copy) I* d2;
Fariborz Jahaniandaa03112008-05-06 18:14:26 +000014@end