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).count = array.count;
32 obj.PropertyReturnsPObj.count = array.count;
34 obj.count = (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 {
55 super.count = array.count;
57 super.PropertyReturnsPObj.count = array.count;
59 super.count = (i1+i2*i3 - 100);
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.count = qsome.count;
100 @interface rdar19140114 : NSObject
102 rdar19140114* menuItem;
107 @implementation rdar19140114
109 menuItem.state = NSOnState;
110 menuItem.state = NSOnState;
111 menuItem.state = ArrNSOnState[NSOnState];
112 menuItem.state = NSOnState;
113 menuItem.state = NSOnState;
114 menuItem.state = NSOnState;
115 menuItem.state = NSOnState;