blob: 1ddbd6236522505a2cf5f470d73b22282ec3e01d [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 ()
13@property(readwrite, copy) id object; // expected-warning {{property attribute in continuation class does not match the primary class}}
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