[ASan] revert part of r175631 that looks like accidental commit

llvm-svn: 175655
This commit is contained in:
Alexey Samsonov 2013-02-20 19:55:47 +00:00
parent b71ce655a8
commit 7dc2b2f07d
1 changed files with 0 additions and 5 deletions

View File

@ -1133,15 +1133,11 @@ TEST(AddressSanitizer, AttributeNoAddressSafetyTest) {
// It doesn't work on Android, as calls to new/delete go through malloc/free.
#if !defined(ANDROID) && !defined(__ANDROID__)
#if 0
static string MismatchStr(const string &str) {
return string("AddressSanitizer: alloc-dealloc-mismatch \\(") + str;
}
#endif
TEST(AddressSanitizer, AllocDeallocMismatch) {
free(Ident(new int));
#if 0
EXPECT_DEATH(free(Ident(new int)),
MismatchStr("operator new vs free"));
EXPECT_DEATH(free(Ident(new int[2])),
@ -1154,7 +1150,6 @@ TEST(AddressSanitizer, AllocDeallocMismatch) {
MismatchStr("operator new vs operator delete \\[\\]"));
EXPECT_DEATH(delete [] (Ident((int*)malloc(2 * sizeof(int)))),
MismatchStr("malloc vs operator delete \\[\\]"));
#endif
}
#endif