2 // RUN: %clang_cc1 -objcmt-migrate-property-dot-syntax -mt-migrate-directory %t %s -x objective-c -fobjc-runtime-has-weak -fobjc-arc -triple x86_64-apple-darwin11
3 // RUN: c-arcmt-test -mt-migrate-directory %t | arcmt-test -verify-transformed-files %s.result
4 // RUN: %clang_cc1 -fblocks -triple x86_64-apple-darwin10 -fsyntax-only -x objective-c -fobjc-runtime-has-weak -fobjc-arc %s.result
9 @property (readonly, copy) NSString *description;
12 @interface NSObject <NSObject> @end
14 @interface P : NSObject
20 @property (copy) P* PropertyReturnsPObj;
21 - (P*) MethodReturnsPObj;
27 - (int) Meth : (P*)array {
30 [(P*)0 setCount : [array count]];
32 [[obj PropertyReturnsPObj] setCount : [array count]];
34 [obj setCount : (i1+i2*i3 - 100)];
37 [(P*)0 count] + [array count] +
39 [[obj PropertyReturnsPObj] count] +
43 - (P*) MethodReturnsPObj { return 0; }
45 - (NSString *)description { return [super description]; }
52 - (int) Meth : (P*)array {
53 [super setCount : 100];
55 [super setCount : [array count]];
57 [[super PropertyReturnsPObj] setCount : [array count]];
59 [super setCount : (i1+i2*i3 - 100)];
61 return [super count] -
62 [(P*)0 count] + [array count] +
64 [[super PropertyReturnsPObj] count] +
70 @interface Rdar19038838
71 @property id newItem; // should be marked objc_method_family(none), but isn't.
74 id testRdar19038838(Rdar19038838 *obj) {
78 @interface rdar19381786 : NSObject
89 @implementation rdar19381786
90 -(void)test:(id)some : (id<PR>)qsome : (SEL)selsome
93 [some setCount : [some count]];
94 [qsome setCount : [qsome count]];
100 @interface rdar19140114 : NSObject
102 rdar19140114* menuItem;
107 @implementation rdar19140114
109 [menuItem setState:NSOnState];
110 [menuItem setState :NSOnState];
111 [menuItem setState :ArrNSOnState[NSOnState]];
112 [menuItem setState : NSOnState];
113 [menuItem setState: NSOnState];
114 [menuItem setState: NSOnState];
115 [menuItem setState : NSOnState];