1// RUN: cp %s %t
2// RUN: %clang_cc1 -x objective-c -fixit %t
3// RUN: %clang_cc1 -x objective-c -Werror %t
4//rdar://17911746
5
6@class BridgeFormatter;
7
8@interface NSObject 
9+ (id)new;
10@end
11
12@interface X : NSObject
13@property int x;
14@property int Y;
15@property(assign, readwrite, getter=formatter, setter=setFormatter:) BridgeFormatter* cppFormatter;
16@end
17
18@implementation X
19- (void) endit
20{
21 self.formatter = 0;
22}
23@end
24 
25int main()
26{
27    X *obj = [X new];
28    obj.X = 3;
29    obj.y = 4;
30    return obj.x + obj.Y;
31}
32