[compiler-rt] 9540f50 - [test][sanitizer] Reformat and print to stderr
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 21 23:21:57 PDT 2023
Author: Vitaly Buka
Date: 2023-06-21T23:21:41-07:00
New Revision: 9540f502816c533fe632e34b1203586d9eec1610
URL: https://github.com/llvm/llvm-project/commit/9540f502816c533fe632e34b1203586d9eec1610
DIFF: https://github.com/llvm/llvm-project/commit/9540f502816c533fe632e34b1203586d9eec1610.diff
LOG: [test][sanitizer] Reformat and print to stderr
Added:
Modified:
compiler-rt/test/sanitizer_common/TestCases/Posix/huge_malloc.c
Removed:
################################################################################
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Posix/huge_malloc.c b/compiler-rt/test/sanitizer_common/TestCases/Posix/huge_malloc.c
index df0e52aa2e2f3..e22349f4d95b9 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Posix/huge_malloc.c
+++ b/compiler-rt/test/sanitizer_common/TestCases/Posix/huge_malloc.c
@@ -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;
More information about the llvm-commits
mailing list