r233593 - [analyzer] Add test for previous commit.

Jordan Rose jordan_rose at apple.com
Mon Mar 30 13:18:04 PDT 2015


Author: jrose
Date: Mon Mar 30 15:18:04 2015
New Revision: 233593

URL: http://llvm.org/viewvc/llvm-project?rev=233593&view=rev
Log:
[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

Modified:
    cfe/trunk/test/Analysis/properties.m

Modified: cfe/trunk/test/Analysis/properties.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/properties.m?rev=233593&r1=233592&r2=233593&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/properties.m (original)
+++ cfe/trunk/test/Analysis/properties.m Mon Mar 30 15:18:04 2015
@@ -671,6 +671,14 @@ void testOpaqueConsistency(OpaqueIntWrap
   }
 }
 
+// rdar://problem/20335433
+- (void)retainIvarAndInvalidateSelf {
+  extern void invalidate(id);
+  [_unownedProp retain];
+  invalidate(self);
+  [_unownedProp release]; // no-warning
+}
+
 @end
 #endif // non-ARC
 





More information about the cfe-commits mailing list