31 lines · plain
1// RUN: cp %s %t2// RUN: %clang_cc1 -x objective-c -fixit %t3// RUN: %clang_cc1 -x objective-c -Werror %t4 5@class BridgeFormatter;6 7@interface NSObject 8+ (id)new;9@end10 11@interface X : NSObject12@property int x;13@property int Y;14@property(assign, readwrite, getter=formatter, setter=setFormatter:) BridgeFormatter* cppFormatter;15@end16 17@implementation X18- (void) endit19{20 self.formatter = 0;21}22@end23 24int main(void)25{26 X *obj = [X new];27 obj.X = 3;28 obj.y = 4;29 return obj.x + obj.Y;30}31