forked from OSchip/llvm-project
[asan] More leaks in test
It fails to detect a single leak with GLIBC 2.34.
This commit is contained in:
parent
ad932320d8
commit
89fb2c71a2
|
@ -11,9 +11,10 @@
|
|||
// REQUIRES: leak-detection
|
||||
// FIXME: sancov paths not work with adb
|
||||
// UNSUPPORTED: android
|
||||
int *g = new int;
|
||||
int *g;
|
||||
int main(int argc, char **argv) {
|
||||
g = 0;
|
||||
for (int i = 0; i < 10; ++i)
|
||||
g = new int[i];
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue