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

Function main

test/core/test_exceptions.cpp:9–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7}
8
9int main() {
10 try {
11 printf("*throw...");
12 throw(1);
13 printf("FAIL");
14 } catch(...) {
15 printf("caught!");
16 }
17 try {
18 thrower();
19 } catch(...) {
20 printf("done!*\n");
21 }
22 return 0;
23}

Callers

nothing calls this directly

Calls 2

printfFunction · 0.85
throwerFunction · 0.70

Tested by

no test coverage detected