blob: 8e56a090018e94a16c0b28dfec01e93481c792e9 [file] [log] [blame]
Patrick Beardacfbe9e2012-04-06 18:12:22 +00001// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
Fariborz Jahanian18789e1c2009-01-17 23:21:10 +00002
3@interface MyClass {
Douglas Gregor78edf992011-01-05 01:10:06 +00004 int prop;
Fariborz Jahanian18789e1c2009-01-17 23:21:10 +00005};
6@property unsigned char bufferedUTF8Bytes[4]; // expected-error {{property cannot have array or function type}}
Chandler Carruthcbe1eba2016-12-20 02:43:58 +00007@property unsigned char bufferedUTFBytes:1; // expected-error {{property name cannot be a bit-field}}
Fariborz Jahanian8efe0ec2010-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 Gregor78edf992011-01-05 01:10:06 +00009
10@property int prop;
Fariborz Jahanian18789e1c2009-01-17 23:21:10 +000011@end
12
13@implementation MyClass
Douglas Gregor78edf992011-01-05 01:10:06 +000014@dynamic ab_defaultToolbarItems // expected-error{{expected ';' after @dynamic}}
15@synthesize prop // expected-error{{expected ';' after @synthesize}}
Fariborz Jahanian18789e1c2009-01-17 23:21:10 +000016@end
17