forked from OSchip/llvm-project
parent
40c5c24c06
commit
4c0a919732
|
@ -470,16 +470,16 @@ void f16(int x, CFTypeRef p) {
|
|||
|
||||
// Test that an object is non-null after being CFRetained/CFReleased.
|
||||
void f17(int x, CFTypeRef p) {
|
||||
if (x) {
|
||||
CFRelease(p);
|
||||
if (!p)
|
||||
CFRelease(0); // no-warning
|
||||
}
|
||||
else {
|
||||
CFRetain(p);
|
||||
if (!p)
|
||||
CFRetain(0); // no-warning
|
||||
}
|
||||
if (x) {
|
||||
CFRelease(p);
|
||||
if (!p)
|
||||
CFRelease(0); // no-warning
|
||||
}
|
||||
else {
|
||||
CFRetain(p);
|
||||
if (!p)
|
||||
CFRetain(0); // no-warning
|
||||
}
|
||||
}
|
||||
|
||||
// Test basic tracking of ivars associated with 'self'. For the retain/release
|
||||
|
|
Loading…
Reference in New Issue