2009-03-24 10:24:46 +08:00
|
|
|
// RUN: clang-cc -fsyntax-only -verify %s
|
2008-11-27 04:33:54 +08:00
|
|
|
|
|
|
|
@interface ReadOnly
|
|
|
|
{
|
|
|
|
id _object;
|
|
|
|
id _object1;
|
|
|
|
}
|
2008-12-06 09:12:43 +08:00
|
|
|
@property(readonly) id object;
|
2008-11-27 04:33:54 +08:00
|
|
|
@property(readwrite, assign) id object1;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface ReadOnly ()
|
2008-12-09 02:47:29 +08:00
|
|
|
@property(readwrite, copy) id object;
|
2008-12-05 06:56:16 +08:00
|
|
|
@property(readonly) id object1; // expected-error {{attribute of property in continuation class of 'ReadOnly' can only be 'readwrite'}}
|
2008-11-27 04:33:54 +08:00
|
|
|
@end
|