blob: bd60f55f0cc17c8684062ca9eb120e25f51360de [file] [log] [blame]
Fariborz Jahanianc1235662008-11-26 20:33:54 +00001// RUN: clang -fsyntax-only -verify %s
2
3@interface ReadOnly
4{
5 id _object;
6 id _object1;
7}
Fariborz Jahanian7ad911c2008-12-06 01:12:43 +00008@property(readonly) id object;
Fariborz Jahanianc1235662008-11-26 20:33:54 +00009@property(readwrite, assign) id object1;
10@end
11
12@interface ReadOnly ()
Fariborz Jahanian965242e2008-12-08 18:47:29 +000013@property(readwrite, copy) id object;
Fariborz Jahanian3d7aa252008-12-04 22:56:16 +000014@property(readonly) id object1; // expected-error {{attribute of property in continuation class of 'ReadOnly' can only be 'readwrite'}}
Fariborz Jahanianc1235662008-11-26 20:33:54 +000015@end