2012-04-07 02:12:22 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
|
2009-01-18 07:21:10 +08:00
|
|
|
|
|
|
|
@interface MyClass {
|
2011-01-05 09:10:06 +08:00
|
|
|
int prop;
|
2009-01-18 07:21:10 +08:00
|
|
|
};
|
|
|
|
@property unsigned char bufferedUTF8Bytes[4]; // expected-error {{property cannot have array or function type}}
|
2016-12-20 10:43:58 +08:00
|
|
|
@property unsigned char bufferedUTFBytes:1; // expected-error {{property name cannot be a bit-field}}
|
2010-02-16 06:20:11 +08:00
|
|
|
@property(nonatomic, retain, setter=ab_setDefaultToolbarItems) MyClass *ab_defaultToolbarItems; // expected-error {{method name referenced in property setter attribute must end with ':'}}
|
2011-01-05 09:10:06 +08:00
|
|
|
|
|
|
|
@property int prop;
|
2009-01-18 07:21:10 +08:00
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation MyClass
|
2011-01-05 09:10:06 +08:00
|
|
|
@dynamic ab_defaultToolbarItems // expected-error{{expected ';' after @dynamic}}
|
|
|
|
@synthesize prop // expected-error{{expected ';' after @synthesize}}
|
2009-01-18 07:21:10 +08:00
|
|
|
@end
|
|
|
|
|