[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

llvm-svn: 233593
This commit is contained in:
Jordan Rose 2015-03-30 20:18:04 +00:00
parent 3da3f8e045
commit ad176b5e10
1 changed files with 8 additions and 0 deletions

View 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