[llvm-commits] [compiler-rt] r163881 - /compiler-rt/trunk/lib/asan/tests/asan_test.cc
Evgeniy Stepanov
eugeni.stepanov at gmail.com
Fri Sep 14 01:57:50 PDT 2012
Author: eugenis
Date: Fri Sep 14 03:57:50 2012
New Revision: 163881
URL: http://llvm.org/viewvc/llvm-project?rev=163881&view=rev
Log:
Remove some debugging code.
Modified:
compiler-rt/trunk/lib/asan/tests/asan_test.cc
Modified: compiler-rt/trunk/lib/asan/tests/asan_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/tests/asan_test.cc?rev=163881&r1=163880&r2=163881&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/tests/asan_test.cc (original)
+++ compiler-rt/trunk/lib/asan/tests/asan_test.cc Fri Sep 14 03:57:50 2012
@@ -142,29 +142,24 @@
}
TEST(AddressSanitizer, VariousMallocsTest) {
- // fprintf(stderr, "malloc:\n");
int *a = (int*)malloc(100 * sizeof(int));
a[50] = 0;
free(a);
- // fprintf(stderr, "realloc:\n");
int *r = (int*)malloc(10);
r = (int*)realloc(r, 2000 * sizeof(int));
r[1000] = 0;
free(r);
- // fprintf(stderr, "operator new []\n");
int *b = new int[100];
b[50] = 0;
delete [] b;
- // fprintf(stderr, "operator new\n");
int *c = new int;
*c = 0;
delete c;
#if !defined(__APPLE__) && !defined(ANDROID) && !defined(__ANDROID__)
- // fprintf(stderr, "posix_memalign\n");
int *pm;
int pm_res = posix_memalign((void**)&pm, kPageSize, kPageSize);
EXPECT_EQ(0, pm_res);
More information about the llvm-commits
mailing list