summaryrefslogtreecommitdiff
path: root/test/ARCMT/assign-prop-with-arc-runtime.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/ARCMT/assign-prop-with-arc-runtime.m')
-rw-r--r--test/ARCMT/assign-prop-with-arc-runtime.m17
1 files changed, 14 insertions, 3 deletions
diff --git a/test/ARCMT/assign-prop-with-arc-runtime.m b/test/ARCMT/assign-prop-with-arc-runtime.m
index 4e4ae774a25c2..9e10b58f621f8 100644
--- a/test/ARCMT/assign-prop-with-arc-runtime.m
+++ b/test/ARCMT/assign-prop-with-arc-runtime.m
@@ -1,5 +1,5 @@
-// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fsyntax-only -fobjc-arc -fobjc-runtime-has-weak -x objective-c %s.result
-// RUN: arcmt-test --args -triple x86_64-apple-macosx10.7 -fobjc-nonfragile-abi -fsyntax-only %s > %t
+// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -fobjc-arc -fobjc-runtime-has-weak -x objective-c %s.result
+// RUN: arcmt-test --args -triple x86_64-apple-macosx10.7 -fsyntax-only %s > %t
// RUN: diff %t %s.result
#include "Common.h"
@@ -20,8 +20,9 @@ typedef _NSCachedAttributedString *BadClassForWeak;
id not_safe1;
NSObject *not_safe2;
Forw *not_safe3;
+ Foo *assign_plus1;
}
-@property (readonly,assign) Foo *x;
+@property (readonly) Foo *x;
@property (assign) Foo *w;
@property Foo *q1, *q2;
@property (assign) WeakOptOut *oo;
@@ -29,6 +30,9 @@ typedef _NSCachedAttributedString *BadClassForWeak;
@property (assign) id not_safe1;
@property () NSObject *not_safe2;
@property Forw *not_safe3;
+@property (readonly) Foo *assign_plus1;
+@property (readonly) Foo *assign_plus2;
+@property (readonly) Foo *assign_plus3;
@property (assign) Foo *no_user_ivar1;
@property (readonly) Foo *no_user_ivar2;
@@ -37,4 +41,11 @@ typedef _NSCachedAttributedString *BadClassForWeak;
@implementation Foo
@synthesize x,w,q1,q2,oo,bcw,not_safe1,not_safe2,not_safe3;
@synthesize no_user_ivar1, no_user_ivar2;
+@synthesize assign_plus1, assign_plus2, assign_plus3;
+
+-(void)test:(Foo *)parm {
+ assign_plus1 = [[Foo alloc] init];
+ assign_plus2 = [Foo new];
+ assign_plus3 = [parm retain];
+}
@end