[test][sanitizer] Reformat and print to stderr

This commit is contained in:
Vitaly Buka 2023-06-21 23:05:21 -07:00
parent cd482968dc
commit 9540f50281

View File

@ -12,12 +12,12 @@
// FIXME: Make it work. Don't xfail to avoid excessive memory usage.
// UNSUPPORTED: asan, msan, hwasan
void* p;
void *p;
int main(int argc, char **argv) {
for (int i = 0; i < sizeof(void*) * 8; ++i) {
for (int i = 0; i < sizeof(void *) * 8; ++i) {
p = malloc(1ull << i);
printf("%llu: %p\n", (1ull << i), p);
fprintf(stderr, "%llu: %p\n", (1ull << i), p);
free(p);
}
return 0;