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
10 @property (readonly, copy) NSString *description;
14 @interface NSObject <NSObject> @end
16 @interface P : NSObject
22 @property (copy) P* PropertyReturnsPObj;
23 - (P*) MethodReturnsPObj;
29 - (int) Meth : (P*)array {
32 [(P*)0 setCount : [array count]];
34 [[obj PropertyReturnsPObj] setCount : [array count]];
36 [obj setCount : (i1+i2*i3 - 100)];
39 [(P*)0 count] + [array count] +
41 [[obj PropertyReturnsPObj] count] +
45 - (P*) MethodReturnsPObj { return 0; }
47 - (NSString *)description { return [super description]; }
55 - (int) Meth : (P*)array {
56 [super setCount : 100];
58 [super setCount : [array count]];
60 [[super PropertyReturnsPObj] setCount : [array count]];
62 [super setCount : (i1+i2*i3 - 100)];
64 return [super count] -
65 [(P*)0 count] + [array count] +
67 [[super PropertyReturnsPObj] count] +
73 @interface Rdar19038838
74 @property id newItem; // should be marked objc_method_family(none), but isn't.
77 id testRdar19038838(Rdar19038838 *obj) {
82 @interface rdar19381786 : NSObject
93 @implementation rdar19381786
94 -(void)test:(id)some : (id<PR>)qsome : (SEL)selsome
97 [some setCount : [some count]];
98 [qsome setCount : [qsome count]];
105 @interface rdar19140114 : NSObject
107 rdar19140114* menuItem;
112 @implementation rdar19140114
114 [menuItem setState:NSOnState];
115 [menuItem setState :NSOnState];
116 [menuItem setState :ArrNSOnState[NSOnState]];
117 [menuItem setState : NSOnState];
118 [menuItem setState: NSOnState];
119 [menuItem setState: NSOnState];
120 [menuItem setState : NSOnState];