diff options
Diffstat (limited to 'test/lld/em_asm64.cpp')
-rw-r--r-- | test/lld/em_asm64.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/lld/em_asm64.cpp b/test/lld/em_asm64.cpp new file mode 100644 index 000000000..ed89783f8 --- /dev/null +++ b/test/lld/em_asm64.cpp @@ -0,0 +1,8 @@ +#include <emscripten/em_asm.h> + +int main() { + EM_ASM({ Module.print("Hello world"); }); + int x = EM_ASM_INT({ return $0 + $1; }, 13, 27); + EM_ASM_({ Module.print("Got " + $0); }, x); + return 0; +} |