blob: 064a2090b005a8fb1ef7bf32f8149a45e2922bbf [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Fariborz Jahanian573acde2009-01-17 23:21:10 +00002
3@interface MyClass {
4
5};
6@property unsigned char bufferedUTF8Bytes[4]; // expected-error {{property cannot have array or function type}}
7@property unsigned char bufferedUTFBytes:1; // expected-error {{property name cannot be a bitfield}}
Fariborz Jahaniane0097db2010-02-15 22:20:11 +00008@property(nonatomic, retain, setter=ab_setDefaultToolbarItems) MyClass *ab_defaultToolbarItems; // expected-error {{method name referenced in property setter attribute must end with ':'}}
Fariborz Jahanian573acde2009-01-17 23:21:10 +00009@end
10
11@implementation MyClass
Fariborz Jahaniane0097db2010-02-15 22:20:11 +000012@dynamic ab_defaultToolbarItems;
Fariborz Jahanian573acde2009-01-17 23:21:10 +000013@end
14