summaryrefslogtreecommitdiff
path: root/test/wasm_backend/hello_world.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/wasm_backend/hello_world.cpp')
-rw-r--r--test/wasm_backend/hello_world.cpp8
1 files changed, 8 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!");
+ });
+}
+