summaryrefslogtreecommitdiffstats
path: root/test/Parser/objc-property-syntax.m
blob: cf75aaa2d5a2f53fab30b5393e51cbca3de123b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: clang-cc -fsyntax-only -verify %s

@interface MyClass {

};
@property unsigned char bufferedUTF8Bytes[4];  // expected-error {{property cannot have array or function type}}
@property unsigned char bufferedUTFBytes:1;    // expected-error {{property name cannot be a bitfield}}
@end

@implementation MyClass
@end

OpenPOWER on IntegriCloud