1 // RUN: %clang_cc1 -triple x86_64-apple-macosx10.7 -fsyntax-only -fobjc-runtime-has-weak -fobjc-arc -x objective-c %s.result
2 // RUN: arcmt-test --args -triple x86_64-apple-macosx10.7 -fsyntax-only -fobjc-gc-only -x objective-c %s > %t
3 // RUN: diff %t %s.result
4 // RUN: arcmt-test --args -triple x86_64-apple-macosx10.7 -fsyntax-only -fobjc-gc-only -x objective-c++ %s > %t
5 // RUN: diff %t %s.result
10 void test1(CFTypeRef *cft) {
11 id x = CFBridgingRelease(cft);
26 @property (strong) id prop;
38 __attribute__((objc_arc_weak_reference_unavailable))
41 __unsafe_unretained QQ *q;
46 @property (weak) I3 * pw1, * pw2;
47 @property (strong) I3 * ps;
48 @property (assign) I3 * pds;
52 I4Impl *__strong pds2;
57 @property (weak) I4Impl * pw1, * pw2;
58 @property (strong) I4Impl * ps;
59 @property (strong) I4Impl * pds;
60 @property (strong) I4Impl * pds2;
61 @property (readwrite) I4Impl * pds3;
62 @property (readonly) I4Impl * pds4;
63 @property (weak, readonly) I4Impl *pw3;
64 @property (weak) I4Impl *pw4;
67 @implementation I4Impl
68 @synthesize pw1, pw2, pw3, pw4, ps, pds, pds2, pds3, pds4;
70 -(void)test1:(CFTypeRef *)cft {
71 id x = CFBridgingRelease(cft);
75 @interface rdar10532449
76 @property (strong) id assign_prop;
77 @property (strong, readonly) id strong_readonly_prop;
78 @property (weak) id weak_prop;
81 @implementation rdar10532449
82 @synthesize assign_prop, strong_readonly_prop, weak_prop;
85 void test2(id p, __strong I1 *ap[]) {
86 for (__strong I1 *specRule in p) {