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

Function main

test/other/test_truncate_from_0.cpp:88–100  ·  view source on GitHub ↗

============================================================================ :: Entry Point

Source from the content-addressed store, hash-verified

86//============================================================================
87// :: Entry Point
88int main()
89{
90 const char* const file = "/tmp/file";
91 createFile(file, "This is some content");
92 getSize(file);
93 resize(file, 32);
94 resize(file, 17);
95 resize(file, 0);
96
97 // This throws a JS exception.
98 resize(file, 32);
99 return 0;
100}

Callers

nothing calls this directly

Calls 3

getSizeFunction · 0.85
createFileFunction · 0.70
resizeFunction · 0.70

Tested by

no test coverage detected