| 15 | typedef int (*intfunc)(); |
| 16 | |
| 17 | int main() |
| 18 | { |
| 19 | intfunc f = (intfunc)emscripten_get_exported_function("_foo"); |
| 20 | intfunc b = (intfunc)emscripten_get_exported_function("_bar"); |
| 21 | emscripten_outf("%d %d", f(), b()); |
| 22 | |
| 23 | // Obtaining the same function pointer twice should return the |
| 24 | // same address. |
| 25 | intfunc b2 = (intfunc)emscripten_get_exported_function("_bar"); |
| 26 | emscripten_outf("%d", b == b2); |
| 27 | } |
nothing calls this directly
no test coverage detected