Closed
Description
STR:
a.c
void foo()
{
}
void js_callback(void (*callback)(void));
int main(int argc, char **argv)
{
js_callback(foo);
}
lib_a.js
mergeInto(LibraryManager.library, {
js_callback: function(foo) {}
});
Cmdline:
emcc -sMEMORY64 --js-library lib_a.js a.c -o a.html
Results in
during Wasm instantiation.
Attached Wast of generated a.wasm. There is a surprising (elem $0 (i64.const 2014339661825) $foo)
in the code.
Metadata
Metadata
Assignees
Labels
No labels