[asan] More leaks in test

It fails to detect a single leak with GLIBC 2.34.
This commit is contained in:
Vitaly Buka 2021-11-12 17:56:19 -08:00
parent ad932320d8
commit 89fb2c71a2
1 changed files with 3 additions and 2 deletions

View File

@ -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;
}