Add gas tests.

This commit is contained in:
Sergey Pepyakin
2018-12-24 20:43:23 +01:00
parent 471a9b3fcc
commit 8db40174ae
5 changed files with 121 additions and 16 deletions
+15
View File
@@ -0,0 +1,15 @@
(module
(func (export "simple")
(if (i32.const 1)
(loop
i32.const 123
drop
)
)
)
(func
block
end
)
)
+18
View File
@@ -0,0 +1,18 @@
(module
(import "env" "ext_return" (func $ext_return (param i32 i32)))
(import "env" "memory" (memory 1 1))
(start $start)
(func $start
(call $ext_return
(i32.const 8)
(i32.const 4)
)
(unreachable)
)
(func (export "call")
)
(data (i32.const 8) "\01\02\03\04")
)