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

Function main

test/browser/emmalloc_memgrowth.cpp:26–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26int main() {
27 // Exhaust all available memory.
28 for(int i = 0; i < 50; ++i) {
29 grow_memory();
30 }
31 // If we get this far without crashing on OOM, we are ok!
32 printf("Test finished!\n");
33 return 0;
34}

Callers

nothing calls this directly

Calls 2

grow_memoryFunction · 0.85
printfFunction · 0.85

Tested by

no test coverage detected