blob: f516a9326a953bfa8ec2d4142fc291d4aa053016 [file] [log] [blame]
Daniel Dunbard7d5f022009-03-24 02:24:46 +00001// RUN: clang-cc -fsyntax-only -verify %s
Fariborz Jahanianb16308f2008-11-26 20:33:54 +00002
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