forked from OSchip/llvm-project
[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:
parent
3da3f8e045
commit
ad176b5e10
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue