From a2987ab51df7996602b15dd44a174b7df0d78ba1 Mon Sep 17 00:00:00 2001 From: Jordan Rose Date: Mon, 30 Mar 2015 20:18:04 +0000 Subject: [PATCH] [analyzer] Add test for previous commit. Again, this is being applied in a separate commit so that the previous commit can be reverted while leaving the test in place. rdar://problem/20335433 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@233593 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Analysis/properties.m | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/Analysis/properties.m b/test/Analysis/properties.m index ef1c2a2de1..bf9424c8c2 100644 --- a/test/Analysis/properties.m +++ b/test/Analysis/properties.m @@ -671,6 +671,14 @@ void testOpaqueConsistency(OpaqueIntWrapper *w) { } } +// rdar://problem/20335433 +- (void)retainIvarAndInvalidateSelf { + extern void invalidate(id); + [_unownedProp retain]; + invalidate(self); + [_unownedProp release]; // no-warning +} + @end #endif // non-ARC -- 2.40.0