diff options
Diffstat (limited to 'test/hello_world.fromasm.clamp')
-rw-r--r-- | test/hello_world.fromasm.clamp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/hello_world.fromasm.clamp b/test/hello_world.fromasm.clamp new file mode 100644 index 000000000..160736cd1 --- /dev/null +++ b/test/hello_world.fromasm.clamp @@ -0,0 +1,14 @@ +(module + (import "env" "memory" (memory $0 256 256)) + (import "env" "table" (table 0 0 anyfunc)) + (import "env" "memoryBase" (global $memoryBase i32)) + (import "env" "tableBase" (global $tableBase i32)) + (data (get_global $memoryBase) "hello_world.asm.js") + (export "add" (func $add)) + (func $add (param $0 i32) (param $1 i32) (result i32) + (i32.add + (get_local $0) + (get_local $1) + ) + ) +) |