diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-03-29 01:10:31 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-03-29 01:10:31 +0000 |
commit | 0fd4a6869e9a12999af24b8df7a0275a0e6c18be (patch) | |
tree | d1be3c968222544078f126cfc70775185aa0e7a8 /test/ARCMT | |
parent | dde3bdb62cd6b0a961ec51a03f494e3aedccb453 (diff) |
[arcmt] Fix a bug where a property in a class extension, that did not exist
in the interface, got its attribute rewritten twice, resulting in
'weakweak' or 'strongstrong'.
rdar://11047179
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153621 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ARCMT')
-rw-r--r-- | test/ARCMT/assign-prop-with-arc-runtime.m | 3 | ||||
-rw-r--r-- | test/ARCMT/assign-prop-with-arc-runtime.m.result | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/test/ARCMT/assign-prop-with-arc-runtime.m b/test/ARCMT/assign-prop-with-arc-runtime.m index 0221afac84..c357eeb171 100644 --- a/test/ARCMT/assign-prop-with-arc-runtime.m +++ b/test/ARCMT/assign-prop-with-arc-runtime.m @@ -65,8 +65,9 @@ typedef _NSCachedAttributedString *BadClassForWeak; @interface TestExt() @property (retain,readwrite) TestExt *x1; @property (readwrite) TestExt *x2; +@property (retain) TestExt *x3; @end @implementation TestExt -@synthesize x1, x2; +@synthesize x1, x2, x3; @end diff --git a/test/ARCMT/assign-prop-with-arc-runtime.m.result b/test/ARCMT/assign-prop-with-arc-runtime.m.result index 30a9caa844..a255a36f24 100644 --- a/test/ARCMT/assign-prop-with-arc-runtime.m.result +++ b/test/ARCMT/assign-prop-with-arc-runtime.m.result @@ -65,8 +65,9 @@ typedef _NSCachedAttributedString *BadClassForWeak; @interface TestExt() @property (strong,readwrite) TestExt *x1; @property (weak, readwrite) TestExt *x2; +@property (strong) TestExt *x3; @end @implementation TestExt -@synthesize x1, x2; +@synthesize x1, x2, x3; @end |