blob: bd60f55f0cc17c8684062ca9eb120e25f51360de [file] [log] [blame]
Fariborz Jahanianb16308f2008-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 Jahanian567c8df2008-12-06 01:12:43 +00008@property(readonly) id object;
Fariborz Jahanianb16308f2008-11-26 20:33:54 +00009@property(readwrite, assign) id object1;
10@end
11
12@interface ReadOnly ()
Fariborz Jahanian9bfb2a22008-12-08 18:47:29 +000013@property(readwrite, copy) id object;
Fariborz Jahanian06de37b2008-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 Jahanianb16308f2008-11-26 20:33:54 +000015@end