blob: b22059c238234e90502bead5c5036210b8aaa27c [file] [log] [blame]
Fariborz Jahaniandaa03112008-05-06 18:14:26 +00001// RUN: clang -verify %s
2
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
12@property (readonly, retain) 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'}}
13@property (readwrite, copy) I* d2; // expected-warning {{property type 'I *' does not match property type inherited from 'I'}}
14@end