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

Function runtest

test/core/test_exceptions_simplify_cfg.cpp:23–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23void runtest() {
24 printf("- Run test\n");
25 Before bef;
26 if ( bef.allow() ) {
27 try {
28 do_throw2();
29 }
30 catch( std::runtime_error ) {
31 printf("- Caught expected\n");
32 }
33 }
34 else { printf("- not allowed\n"); }
35
36}
37
38int main( int argc, char* argv[] ) {
39 runtest();

Callers 1

mainFunction · 0.85

Calls 3

printfFunction · 0.85
do_throw2Function · 0.85
allowMethod · 0.80

Tested by

no test coverage detected