1 // RUN: %clang_cc1 -triple x86_64-apple-macosx10.6 -fsyntax-only -fobjc-runtime-has-weak -fobjc-arc -x objective-c %s.result
2 // RUN: arcmt-test --args -triple x86_64-apple-macosx10.6 -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.6 -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))
40 __unsafe_unretained id s;
41 __unsafe_unretained QQ *q;
46 @property (unsafe_unretained) I3 * pw1, * pw2;
47 @property (strong) I3 * ps;
48 @property (assign) I3 * pds;
52 I4Impl *__strong pds2;
54 @property (unsafe_unretained) I4Impl * pw1, * pw2;
55 @property (strong) I4Impl * ps;
56 @property (strong) I4Impl * pds;
57 @property (strong) I4Impl * pds2;
60 @implementation I4Impl
61 @synthesize pw1, pw2, ps, pds, pds2;
63 -(void)test1:(CFTypeRef *)cft {
64 id x = CFBridgingRelease(cft);
69 __unsafe_unretained id prop;
71 @property (unsafe_unretained, readonly) id prop;