MCPcopy Create free account
hub / github.com/cpputest/cpputest / deleteInvalidatesMemory

Function deleteInvalidatesMemory

tests/CppUTest/MemoryOperatorOverloadTest.cpp:39–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39CPPUTEST_DO_NOT_SANITIZE_ADDRESS
40static void deleteInvalidatesMemory()
41{
42 unsigned char* memory = new unsigned char;
43 *memory = 0xAD;
44 delete memory;
45 CHECK(*memory != 0xAD);
46}
47
48TEST(BasicBehavior, deleteInvalidatesMemory)
49{

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected