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

Function main

test/other/test_exceptions_exit_runtime.cpp:9–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7}
8
9int main() {
10 printf("main\n");
11 try {
12 // `foo` calls `exit()` which triggers the runtime to exit and then
13 // the stack to unwind.
14 // This test verifies that we don't error during the unwinding due
15 // to the runtime having already exited.
16 foo();
17 } catch(...) {
18 printf("caught\n");
19 }
20}

Callers

nothing calls this directly

Calls 2

printfFunction · 0.85
fooFunction · 0.70

Tested by

no test coverage detected