summaryrefslogtreecommitdiffstats
path: root/clang/test/ARCMT/assign-prop-with-arc-runtime.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/ARCMT/assign-prop-with-arc-runtime.m')
-rw-r--r--clang/test/ARCMT/assign-prop-with-arc-runtime.m30
1 files changed, 23 insertions, 7 deletions
diff --git a/clang/test/ARCMT/assign-prop-with-arc-runtime.m b/clang/test/ARCMT/assign-prop-with-arc-runtime.m
index 8d9f21115c5..e9416fe0292 100644
--- a/clang/test/ARCMT/assign-prop-with-arc-runtime.m
+++ b/clang/test/ARCMT/assign-prop-with-arc-runtime.m
@@ -4,16 +4,32 @@
#include "Common.h"
+__attribute__((objc_arc_weak_reference_unavailable))
+@interface WeakOptOut
+@end
+
+@class _NSCachedAttributedString;
+
+typedef _NSCachedAttributedString *BadClassForWeak;
+
@interface Foo : NSObject {
- NSObject *x, *w, *q1, *q2;
- NSObject *z1, *__unsafe_unretained z2;
+ Foo *x, *w, *q1, *q2;
+ Foo *z1, *__unsafe_unretained z2;
+ WeakOptOut *oo;
+ BadClassForWeak bcw;
+ id not_safe1;
+ NSObject *not_safe2;
}
-@property (readonly,assign) id x;
-@property (assign) id w;
-@property (assign) id q1, q2;
-@property (assign) id z1, z2;
+@property (readonly,assign) Foo *x;
+@property (assign) Foo *w;
+@property (assign) Foo *q1, *q2;
+@property (assign) Foo *z1, *z2;
+@property (assign) WeakOptOut *oo;
+@property (assign) BadClassForWeak bcw;
+@property (assign) id not_safe1;
+@property (assign) NSObject *not_safe2;
@end
@implementation Foo
-@synthesize x,w,q1,q2,z1,z2;
+@synthesize x,w,q1,q2,z1,z2,oo,bcw,not_safe1,not_safe2;
@end
OpenPOWER on IntegriCloud