blob: 6ef2ad7c527d986ba1b31993ace1d4aa2660d701 [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 {
Douglas Gregore6bf90a2011-01-05 01:10:06 +00004 int prop;
Fariborz Jahanian573acde2009-01-17 23:21:10 +00005};
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 ':'}}
Douglas Gregore6bf90a2011-01-05 01:10:06 +00009
10@property int prop;
Fariborz Jahanian573acde2009-01-17 23:21:10 +000011@end
12
13@implementation MyClass
Douglas Gregore6bf90a2011-01-05 01:10:06 +000014@dynamic ab_defaultToolbarItems // expected-error{{expected ';' after @dynamic}}
15@synthesize prop // expected-error{{expected ';' after @synthesize}}
Fariborz Jahanian573acde2009-01-17 23:21:10 +000016@end
17