diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/wasm_backend/hello_world.cpp | 8 | ||||
-rw-r--r-- | test/wasm_backend/hello_world.txt | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/test/wasm_backend/hello_world.cpp b/test/wasm_backend/hello_world.cpp new file mode 100644 index 000000000..a4a6a025d --- /dev/null +++ b/test/wasm_backend/hello_world.cpp @@ -0,0 +1,8 @@ +#include <emscripten.h> + +int main() { + EM_ASM({ + Module.print("hello, world!"); + }); +} + diff --git a/test/wasm_backend/hello_world.txt b/test/wasm_backend/hello_world.txt new file mode 100644 index 000000000..270c611ee --- /dev/null +++ b/test/wasm_backend/hello_world.txt @@ -0,0 +1 @@ +hello, world! |