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

Function main

test/core/test_stdvec.cpp:18–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16void foo(int a, float b) { printf("%d:%.2f\n", a, b); }
17
18int main(int argc, char *argv[]) {
19 std::vector<S> ar;
20 S s;
21
22 s.a = 789;
23 s.b = 123.456f;
24 ar.push_back(s);
25
26 s.a = 0;
27 s.b = 100.1f;
28 ar.push_back(s);
29
30 foo(ar[0].a, ar[0].b);
31 foo(ar[1].a, ar[1].b);
32}

Callers

nothing calls this directly

Calls 2

fooFunction · 0.70
push_backMethod · 0.65

Tested by

no test coverage detected