diff options
Diffstat (limited to 'test/lld/em_asm_pthread.cpp')
-rw-r--r-- | test/lld/em_asm_pthread.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/lld/em_asm_pthread.cpp b/test/lld/em_asm_pthread.cpp new file mode 100644 index 000000000..d327bedf2 --- /dev/null +++ b/test/lld/em_asm_pthread.cpp @@ -0,0 +1,13 @@ +// Build with +// +// emcc a.cpp -pthread -s WASM_BIGINT +// + +#include <emscripten.h> + +EM_JS(void, world, (), { console.log("World."); }); + +int main() { + EM_ASM({ console.log("Hello."); }); + world(); +} |