blob: 1d4725f887571c82087b3493eadb5afb015932b1 [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}
8@property(readonly, assign) id object;
9@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}}
14@property(readonly) id object1; // expected-error {{use contination class to override 'readonly' property with 'readwrite'}}
15@end