Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cpputest/cpputest
/ TEST
Function
TEST
tests/CppUTest/MemoryOperatorOverloadTest.cpp:17–21 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
15
};
16
17
TEST(BasicBehavior, CanDeleteNullPointers)
18
{
19
delete (char*) NULLPTR;
20
delete [] (char*) NULLPTR;
21
}
22
23
#if CPPUTEST_USE_MEM_LEAK_DETECTION
24
Callers
nothing calls this directly
Calls
15
deleteArrayInvalidatesMemory
Function · 0.85
deleteInvalidatesMemory
Function · 0.85
operator delete
Function · 0.85
operator delete[]
Function · 0.85
cpputest_malloc_location
Function · 0.85
cpputest_free_location
Function · 0.85
freeInvalidatesMemory
Function · 0.85
PlatformSpecificMalloc
Function · 0.85
PlatformSpecificFree
Function · 0.85
newAllocation
Function · 0.85
newArrayAllocation
Function · 0.85
mallocAllocation
Function · 0.85
Tested by
no test coverage detected