forked from OSchip/llvm-project
Update test case to include a leak that occurs at the place of allocation.
llvm-svn: 65048
This commit is contained in:
parent
deafc5c601
commit
bea465aefb
|
@ -236,4 +236,8 @@ void f13_autorelease() {
|
|||
CFMutableArrayRef A = CFArrayCreateMutable(0, 10, &kCFTypeArrayCallBacks);
|
||||
[(id) A autorelease]; // no-warning
|
||||
}
|
||||
|
||||
|
||||
// This case exercises the logic where the leak site is the same as the allocation site.
|
||||
void f14_leakimmediately() {
|
||||
CFArrayCreateMutable(0, 10, &kCFTypeArrayCallBacks); // expected-warning{{leak}}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue