From: Jordan Rose Date: Mon, 30 Mar 2015 20:18:04 +0000 (+0000) Subject: [analyzer] Add test for previous commit. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a2987ab51df7996602b15dd44a174b7df0d78ba1;p=clang [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 --- 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