MCPcopy Index your code
hub / github.com/GJDuck/e9patch / test_memset

Function test_memset

test/regtest/patch.cpp:671–678  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

669}
670
671void test_memset(intptr_t *ptr)
672{
673 memset(ptr, 0xe9, sizeof(*ptr));
674 fprintf(stderr, "*ptr = %.16lx\n", *ptr);
675 fprintf(stderr, "%s\n", (*ptr == (intptr_t)0xe9e9e9e9e9e9e9e9?
676 "PASSED": "FAILED"));
677 exit(0);
678}
679void test_memcpy(intptr_t *ptr)
680{
681 intptr_t val = -1;

Callers

nothing calls this directly

Calls 3

memsetFunction · 0.85
exitFunction · 0.85
fprintfFunction · 0.50

Tested by

no test coverage detected