From 7df1e482dcdc2305767ab483406a60490fe98555 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 15 Dec 2015 14:26:13 -0800 Subject: add another wasm-backend testcase --- test/wasm_backend/hello_num.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/wasm_backend/hello_num.cpp (limited to 'test/wasm_backend/hello_num.cpp') diff --git a/test/wasm_backend/hello_num.cpp b/test/wasm_backend/hello_num.cpp new file mode 100644 index 000000000..d272f11c6 --- /dev/null +++ b/test/wasm_backend/hello_num.cpp @@ -0,0 +1,10 @@ +#include + +int main() { + int *x = (int*)8; + *x = 123; + EM_ASM({ + Module.print("hello, world " + HEAP32[8>>2] + "!"); + }); +} + -- cgit v1.2.3