blob: 38d12d5905c33312cbdf121481605f90f6f6b170 [file] [log] [blame]
Patrick Beardb2f68202012-04-06 18:12:22 +00001// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %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