]> granicus.if.org Git - clang/commitdiff
[analyzer] Add test for previous commit.
authorJordan Rose <jordan_rose@apple.com>
Mon, 30 Mar 2015 20:18:04 +0000 (20:18 +0000)
committerJordan Rose <jordan_rose@apple.com>
Mon, 30 Mar 2015 20:18:04 +0000 (20:18 +0000)
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

index ef1c2a2de11c5624a5766c7cbd83cdce0378dadf..bf9424c8c2068626c099b96c4d5c93b137c6ae05 100644 (file)
@@ -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