MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / main

Function main

test/core/test_dlmalloc_partial_2.c:13–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12void *malloc(size_t size) { return (void *)123; }
13int main() {
14 void *x = malloc(10);
15 emscripten_outf("got %p", x);
16 free(0);
17 emscripten_outf("freed a fake");
18 return 1;
19}

Callers

nothing calls this directly

Calls 3

mallocFunction · 0.70
freeFunction · 0.70
emscripten_outfFunction · 0.50

Tested by

no test coverage detected