summaryrefslogtreecommitdiff
path: root/test/dot_s/basics.wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/dot_s/basics.wast')
-rw-r--r--test/dot_s/basics.wast14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/dot_s/basics.wast b/test/dot_s/basics.wast
index 9215507f7..57b3b9899 100644
--- a/test/dot_s/basics.wast
+++ b/test/dot_s/basics.wast
@@ -9,10 +9,10 @@
(data (i32.const 16) "hello, world!\n\00")
(data (i32.const 32) "vcq")
(data (i32.const 48) "\16\00\00\00")
+ (export "main" (func $main))
(export "stackSave" (func $stackSave))
(export "stackAlloc" (func $stackAlloc))
(export "stackRestore" (func $stackRestore))
- (export "main" (func $main))
(export "dynCall_iii" (func $dynCall_iii))
(func $main (; 1 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(call $puts
@@ -97,12 +97,15 @@
)
(get_local $0)
)
- (func $stackSave (; 2 ;) (result i32)
+ (func $__wasm_nullptr (; 2 ;) (type $FUNCSIG$v)
+ (unreachable)
+ )
+ (func $stackSave (; 3 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (; 3 ;) (param $0 i32) (result i32)
+ (func $stackAlloc (; 4 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -121,15 +124,12 @@
)
(get_local $1)
)
- (func $stackRestore (; 4 ;) (param $0 i32)
+ (func $stackRestore (; 5 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
)
)
- (func $__wasm_nullptr (; 5 ;) (type $FUNCSIG$v)
- (unreachable)
- )
(func $dynCall_iii (; 6 ;) (param $fptr i32) (param $0 i32) (param $1 i32) (result i32)
(call_indirect (type $FUNCSIG$iii)
(get_local $0)