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

Function foobar

test/core/test_i64_invoke_bigint.cpp:7–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5int64_t big = 0x12345678aabbccddL;
6
7__attribute__((noinline))
8int64_t foobar(int64_t x, int y) {
9 x += EM_ASM_INT({
10 return 0; // prevents llvm from seeing the final value
11 });
12 if (x == 1337) {
13 throw 1; // looks like we might throw
14 }
15 return x + y; // use the int parameter too, to show they are all handled
16}
17
18int main() {
19 int64_t x;

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected