summaryrefslogtreecommitdiff
path: root/test/dot_s
diff options
context:
space:
mode:
Diffstat (limited to 'test/dot_s')
-rw-r--r--test/dot_s/alias.wast6
-rw-r--r--test/dot_s/alternate-lcomm.wast3
-rw-r--r--test/dot_s/asm_const.wast7
-rw-r--r--test/dot_s/basics.wast12
-rw-r--r--test/dot_s/bcp-1.wast16
-rw-r--r--test/dot_s/data-offset-folding.wast3
-rw-r--r--test/dot_s/debug.wast3
-rw-r--r--test/dot_s/dso_handle.wast3
-rw-r--r--test/dot_s/dyncall.wast6
-rw-r--r--test/dot_s/exit.wast5
-rw-r--r--test/dot_s/export_malloc_free.wast3
-rw-r--r--test/dot_s/fix_em_ehsjlj_names.wast6
-rw-r--r--test/dot_s/function-data-sections.wast3
-rw-r--r--test/dot_s/hostFinalize.wast3
-rw-r--r--test/dot_s/indidx.wast8
-rw-r--r--test/dot_s/indirect-import.wast6
-rw-r--r--test/dot_s/initializers.wast3
-rw-r--r--test/dot_s/lcomm-in-text-segment.wast3
-rw-r--r--test/dot_s/local_align.wast3
-rw-r--r--test/dot_s/macClangMetaData.wast7
-rw-r--r--test/dot_s/memops.wast7
-rw-r--r--test/dot_s/minimal.wast3
-rw-r--r--test/dot_s/permute.wast3
-rw-r--r--test/dot_s/relocation.wast3
-rw-r--r--test/dot_s/return.wast3
-rw-r--r--test/dot_s/start_main0.wast5
-rw-r--r--test/dot_s/start_main2.wast5
-rw-r--r--test/dot_s/symbolic-offset.wast3
-rw-r--r--test/dot_s/text_before_type.wast3
-rw-r--r--test/dot_s/unreachable_blocks.wast3
-rw-r--r--test/dot_s/visibilities.wast3
31 files changed, 63 insertions, 87 deletions
diff --git a/test/dot_s/alias.wast b/test/dot_s/alias.wast
index cc54fa08c..1f450fa57 100644
--- a/test/dot_s/alias.wast
+++ b/test/dot_s/alias.wast
@@ -1,13 +1,13 @@
(module
+ (type $FUNCSIG$v (func))
+ (table 2 2 anyfunc)
+ (elem (i32.const 0) $__wasm_nullptr $__exit)
(memory $0 1)
(data (i32.const 16) "\d2\04\00\00\00\00\00\00)\t\00\00")
- (type $FUNCSIG$v (func))
(export "memory" (memory $0))
(export "__exit" (func $__exit))
(export "__needs_exit" (func $__needs_exit))
(export "dynCall_v" (func $dynCall_v))
- (table 2 2 anyfunc)
- (elem (i32.const 0) $__wasm_nullptr $__exit)
(func $__exit (type $FUNCSIG$v)
(return
(i32.add
diff --git a/test/dot_s/alternate-lcomm.wast b/test/dot_s/alternate-lcomm.wast
index e9cb735ac..c380944ab 100644
--- a/test/dot_s/alternate-lcomm.wast
+++ b/test/dot_s/alternate-lcomm.wast
@@ -1,7 +1,6 @@
(module
+ (table 0 anyfunc)
(memory $0 1)
(export "memory" (memory $0))
- (table 0 anyfunc)
-
)
;; METADATA: { "asmConsts": {},"staticBump": 16, "initializers": [] }
diff --git a/test/dot_s/asm_const.wast b/test/dot_s/asm_const.wast
index 2a1a58bcf..4edc6c476 100644
--- a/test/dot_s/asm_const.wast
+++ b/test/dot_s/asm_const.wast
@@ -1,12 +1,11 @@
(module
- (memory $0 1)
- (data (i32.const 16) "{ Module.print(\"hello, world!\"); }\00")
(type $FUNCSIG$vi (func (param i32)))
(import "env" "emscripten_asm_const_vi" (func $emscripten_asm_const_vi (param i32)))
+ (table 0 anyfunc)
+ (memory $0 1)
+ (data (i32.const 16) "{ Module.print(\"hello, world!\"); }\00")
(export "memory" (memory $0))
(export "main" (func $main))
- (table 0 anyfunc)
-
(func $main (result i32)
(call $emscripten_asm_const_vi
(i32.const 0)
diff --git a/test/dot_s/basics.wast b/test/dot_s/basics.wast
index 99ad24806..3b539fa11 100644
--- a/test/dot_s/basics.wast
+++ b/test/dot_s/basics.wast
@@ -1,17 +1,17 @@
(module
- (memory $0 1)
- (data (i32.const 16) "hello, world!\n\00")
- (data (i32.const 32) "vcq")
- (data (i32.const 48) "\16\00\00\00")
(type $FUNCSIG$vi (func (param i32)))
(type $FUNCSIG$v (func))
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
(import "env" "puts" (func $puts (param i32)))
+ (table 2 2 anyfunc)
+ (elem (i32.const 0) $__wasm_nullptr $main)
+ (memory $0 1)
+ (data (i32.const 16) "hello, world!\n\00")
+ (data (i32.const 32) "vcq")
+ (data (i32.const 48) "\16\00\00\00")
(export "memory" (memory $0))
(export "main" (func $main))
(export "dynCall_iii" (func $dynCall_iii))
- (table 2 2 anyfunc)
- (elem (i32.const 0) $__wasm_nullptr $main)
(func $main (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(call $puts
(i32.const 16)
diff --git a/test/dot_s/bcp-1.wast b/test/dot_s/bcp-1.wast
index 1aafc1289..5529ce62d 100644
--- a/test/dot_s/bcp-1.wast
+++ b/test/dot_s/bcp-1.wast
@@ -1,4 +1,12 @@
(module
+ (type $FUNCSIG$i (func (result i32)))
+ (type $FUNCSIG$ii (func (param i32) (result i32)))
+ (type $FUNCSIG$v (func))
+ (type $FUNCSIG$vi (func (param i32)))
+ (import "env" "abort" (func $abort))
+ (import "env" "exit" (func $exit (param i32)))
+ (table 18 18 anyfunc)
+ (elem (i32.const 0) $__wasm_nullptr $bad0 $bad1 $bad5 $bad7 $bad8 $bad10 $bad2 $bad3 $bad6 $bad4 $bad9 $good0 $good1 $good2 $opt0 $opt1 $opt2)
(memory $0 1)
(data (i32.const 16) "\01\00\00\00\02\00\00\00\03\00\00\00\04\00\00\00\05\00\00\00\06\00\00\00")
(data (i32.const 40) "\07\00\00\00\08\00\00\00\t\00\00\00")
@@ -7,12 +15,6 @@
(data (i32.const 72) "\0f\00\00\00\10\00\00\00\11\00\00\00")
(data (i32.const 96) "hi\00")
(data (i32.const 100) "\00\00\00\00")
- (type $FUNCSIG$i (func (result i32)))
- (type $FUNCSIG$ii (func (param i32) (result i32)))
- (type $FUNCSIG$v (func))
- (type $FUNCSIG$vi (func (param i32)))
- (import "env" "abort" (func $abort))
- (import "env" "exit" (func $exit (param i32)))
(export "memory" (memory $0))
(export "bad0" (func $bad0))
(export "bad1" (func $bad1))
@@ -34,8 +36,6 @@
(export "main" (func $main))
(export "dynCall_i" (func $dynCall_i))
(export "dynCall_ii" (func $dynCall_ii))
- (table 18 18 anyfunc)
- (elem (i32.const 0) $__wasm_nullptr $bad0 $bad1 $bad5 $bad7 $bad8 $bad10 $bad2 $bad3 $bad6 $bad4 $bad9 $good0 $good1 $good2 $opt0 $opt1 $opt2)
(func $bad0 (type $FUNCSIG$i) (result i32)
(return
(i32.const 0)
diff --git a/test/dot_s/data-offset-folding.wast b/test/dot_s/data-offset-folding.wast
index 5cec37c54..9c179a112 100644
--- a/test/dot_s/data-offset-folding.wast
+++ b/test/dot_s/data-offset-folding.wast
@@ -1,9 +1,8 @@
(module
+ (table 0 anyfunc)
(memory $0 1)
(data (i32.const 12) "\00\00\00\00")
(data (i32.const 416) "`\00\00\00")
(export "memory" (memory $0))
- (table 0 anyfunc)
-
)
;; METADATA: { "asmConsts": {},"staticBump": 420, "initializers": [] }
diff --git a/test/dot_s/debug.wast b/test/dot_s/debug.wast
index eef7cca0a..0d96c92c7 100644
--- a/test/dot_s/debug.wast
+++ b/test/dot_s/debug.wast
@@ -1,9 +1,8 @@
(module
+ (table 0 anyfunc)
(memory $0 1)
(export "memory" (memory $0))
(export "fib" (func $fib))
- (table 0 anyfunc)
-
(func $fib (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
diff --git a/test/dot_s/dso_handle.wast b/test/dot_s/dso_handle.wast
index 6e12fabf0..e75d11410 100644
--- a/test/dot_s/dso_handle.wast
+++ b/test/dot_s/dso_handle.wast
@@ -1,9 +1,8 @@
(module
+ (table 0 anyfunc)
(memory $0 1)
(export "memory" (memory $0))
(export "main" (func $main))
- (table 0 anyfunc)
-
(func $main (result i32)
(return
(i32.const 8)
diff --git a/test/dot_s/dyncall.wast b/test/dot_s/dyncall.wast
index a4c7880a3..40d36f73a 100644
--- a/test/dot_s/dyncall.wast
+++ b/test/dot_s/dyncall.wast
@@ -1,10 +1,12 @@
(module
- (memory $0 1)
(type $FUNCSIG$v (func))
(type $FUNCSIG$i (func (result i32)))
(type $FUNCSIG$if (func (param f32) (result i32)))
(type $FUNCSIG$vd (func (param f64)))
(type $FUNCSIG$ffjjdi (func (param f32 i64 i64 f64 i32) (result f32)))
+ (table 6 6 anyfunc)
+ (elem (i32.const 0) $__wasm_nullptr $i $i_f $vd $ffjjdi $vd2)
+ (memory $0 1)
(export "memory" (memory $0))
(export "i" (func $i))
(export "i_f" (func $i_f))
@@ -15,8 +17,6 @@
(export "dynCall_i" (func $dynCall_i))
(export "dynCall_if" (func $dynCall_if))
(export "dynCall_vd" (func $dynCall_vd))
- (table 6 6 anyfunc)
- (elem (i32.const 0) $__wasm_nullptr $i $i_f $vd $ffjjdi $vd2)
(func $i (type $FUNCSIG$i) (result i32)
(i32.const 0)
)
diff --git a/test/dot_s/exit.wast b/test/dot_s/exit.wast
index 92963a847..9e71a9bdc 100644
--- a/test/dot_s/exit.wast
+++ b/test/dot_s/exit.wast
@@ -1,11 +1,10 @@
(module
- (memory $0 1)
(type $FUNCSIG$vi (func (param i32)))
(import "env" "exit" (func $exit (param i32)))
+ (table 0 anyfunc)
+ (memory $0 1)
(export "memory" (memory $0))
(export "main" (func $main))
- (table 0 anyfunc)
-
(func $main (result i32)
(local $0 i32)
(call $exit
diff --git a/test/dot_s/export_malloc_free.wast b/test/dot_s/export_malloc_free.wast
index 42ae62497..22ae51549 100644
--- a/test/dot_s/export_malloc_free.wast
+++ b/test/dot_s/export_malloc_free.wast
@@ -1,12 +1,11 @@
(module
+ (table 0 anyfunc)
(memory $0 1)
(export "memory" (memory $0))
(export "main" (func $main))
(export "malloc" (func $malloc))
(export "free" (func $free))
(export "realloc" (func $realloc))
- (table 0 anyfunc)
-
(func $main (result i32)
(i32.const 0)
)
diff --git a/test/dot_s/fix_em_ehsjlj_names.wast b/test/dot_s/fix_em_ehsjlj_names.wast
index 5d21caea9..fb1722a68 100644
--- a/test/dot_s/fix_em_ehsjlj_names.wast
+++ b/test/dot_s/fix_em_ehsjlj_names.wast
@@ -1,5 +1,4 @@
(module
- (memory $0 1)
(type $FUNCSIG$vi (func (param i32)))
(type $FUNCSIG$iiiii (func (param i32 i32 i32 i32) (result i32)))
(type $FUNCSIG$fifd (func (param i32 f32 f64) (result f32)))
@@ -13,14 +12,15 @@
(import "env" "invoke_iii" (func $invoke_iii (param i32 i32 i32) (result i32)))
(import "env" "invoke_iiii" (func $invoke_iiii (param i32 i32 i32 i32) (result i32)))
(import "env" "invoke_v" (func $invoke_v (param i32)))
+ (table 5 5 anyfunc)
+ (elem (i32.const 0) $__wasm_nullptr $_Z5func1v $_Z5func2iii $_Z5func3fd $_Z5func4P8mystructS_)
+ (memory $0 1)
(export "memory" (memory $0))
(export "main" (func $main))
(export "dynCall_v" (func $dynCall_v))
(export "dynCall_iiii" (func $dynCall_iiii))
(export "dynCall_ffd" (func $dynCall_ffd))
(export "dynCall_iii" (func $dynCall_iii))
- (table 5 5 anyfunc)
- (elem (i32.const 0) $__wasm_nullptr $_Z5func1v $_Z5func2iii $_Z5func3fd $_Z5func4P8mystructS_)
(func $_Z5func1v (type $FUNCSIG$v)
)
(func $_Z5func2iii (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
diff --git a/test/dot_s/function-data-sections.wast b/test/dot_s/function-data-sections.wast
index 59b13c81c..f634ec38e 100644
--- a/test/dot_s/function-data-sections.wast
+++ b/test/dot_s/function-data-sections.wast
@@ -1,4 +1,5 @@
(module
+ (table 0 anyfunc)
(memory $0 1)
(data (i32.const 12) "\00\00\00\00")
(data (i32.const 16) "\01\00\00\00")
@@ -7,8 +8,6 @@
(export "foo" (func $foo))
(export "bar" (func $bar))
(export "qux" (func $qux))
- (table 0 anyfunc)
-
(func $foo
(return)
)
diff --git a/test/dot_s/hostFinalize.wast b/test/dot_s/hostFinalize.wast
index 3f87397b9..97ba45498 100644
--- a/test/dot_s/hostFinalize.wast
+++ b/test/dot_s/hostFinalize.wast
@@ -1,8 +1,7 @@
(module
+ (table 0 anyfunc)
(memory $0 1)
(export "memory" (memory $0))
- (table 0 anyfunc)
-
(func $_main
(drop
(grow_memory
diff --git a/test/dot_s/indidx.wast b/test/dot_s/indidx.wast
index 8c3cc60a5..c96043b0c 100644
--- a/test/dot_s/indidx.wast
+++ b/test/dot_s/indidx.wast
@@ -1,14 +1,14 @@
(module
- (memory $0 1)
- (data (i32.const 16) "\04\00\00\00\02\00\00\00\01\00\00\00\03\00\00\00")
(type $FUNCSIG$i (func (result i32)))
(type $FUNCSIG$v (func))
(import "env" "getchar" (func $getchar (result i32)))
+ (table 5 5 anyfunc)
+ (elem (i32.const 0) $__wasm_nullptr $c $b $d $a)
+ (memory $0 1)
+ (data (i32.const 16) "\04\00\00\00\02\00\00\00\01\00\00\00\03\00\00\00")
(export "memory" (memory $0))
(export "main" (func $main))
(export "dynCall_i" (func $dynCall_i))
- (table 5 5 anyfunc)
- (elem (i32.const 0) $__wasm_nullptr $c $b $d $a)
(func $a (type $FUNCSIG$i) (result i32)
(i32.const 0)
)
diff --git a/test/dot_s/indirect-import.wast b/test/dot_s/indirect-import.wast
index 6eb032629..0f1c3b751 100644
--- a/test/dot_s/indirect-import.wast
+++ b/test/dot_s/indirect-import.wast
@@ -1,5 +1,4 @@
(module
- (memory $0 1)
(type $FUNCSIG$fd (func (param f64) (result f32)))
(type $FUNCSIG$vj (func (param i64)))
(type $FUNCSIG$v (func))
@@ -11,14 +10,15 @@
(import "env" "extern_fd" (func $extern_fd (param f64) (result f32)))
(import "env" "extern_struct" (func $extern_struct (param i32)))
(import "env" "extern_sret" (func $extern_sret (param i32)))
+ (table 7 7 anyfunc)
+ (elem (i32.const 0) $__wasm_nullptr $__importThunk_extern_fd $__importThunk_extern_vj $__importThunk_extern_v $__importThunk_extern_ijidf $__importThunk_extern_struct $__importThunk_extern_sret)
+ (memory $0 1)
(export "memory" (memory $0))
(export "bar" (func $bar))
(export "baz" (func $baz))
(export "dynCall_fd" (func $dynCall_fd))
(export "dynCall_v" (func $dynCall_v))
(export "dynCall_vi" (func $dynCall_vi))
- (table 7 7 anyfunc)
- (elem (i32.const 0) $__wasm_nullptr $__importThunk_extern_fd $__importThunk_extern_vj $__importThunk_extern_v $__importThunk_extern_ijidf $__importThunk_extern_struct $__importThunk_extern_sret)
(func $bar (result i32)
(local $0 i32)
(local $1 i32)
diff --git a/test/dot_s/initializers.wast b/test/dot_s/initializers.wast
index 51d9d2c4c..19e7b8c85 100644
--- a/test/dot_s/initializers.wast
+++ b/test/dot_s/initializers.wast
@@ -1,11 +1,10 @@
(module
+ (table 0 anyfunc)
(memory $0 1)
(export "memory" (memory $0))
(export "main" (func $main))
(export "f1" (func $f1))
(export "f2" (func $f2))
- (table 0 anyfunc)
-
(func $main (result i32)
(return
(i32.const 5)
diff --git a/test/dot_s/lcomm-in-text-segment.wast b/test/dot_s/lcomm-in-text-segment.wast
index 5de03e8c9..2442d8f97 100644
--- a/test/dot_s/lcomm-in-text-segment.wast
+++ b/test/dot_s/lcomm-in-text-segment.wast
@@ -1,8 +1,7 @@
(module
+ (table 0 anyfunc)
(memory $0 1)
(data (i32.const 20) "\10\00\00\00")
(export "memory" (memory $0))
- (table 0 anyfunc)
-
)
;; METADATA: { "asmConsts": {},"staticBump": 24, "initializers": [] }
diff --git a/test/dot_s/local_align.wast b/test/dot_s/local_align.wast
index 075250df4..f25555bb5 100644
--- a/test/dot_s/local_align.wast
+++ b/test/dot_s/local_align.wast
@@ -1,9 +1,8 @@
(module
+ (table 0 anyfunc)
(memory $0 1)
(export "memory" (memory $0))
(export "main" (func $main))
- (table 0 anyfunc)
-
(func $foo (param $0 i32)
)
(func $main (result i32)
diff --git a/test/dot_s/macClangMetaData.wast b/test/dot_s/macClangMetaData.wast
index 33a08ec6c..f295ec8d0 100644
--- a/test/dot_s/macClangMetaData.wast
+++ b/test/dot_s/macClangMetaData.wast
@@ -1,12 +1,11 @@
(module
- (memory $0 1)
- (data (i32.const 16) "Hello, World!\00")
(type $FUNCSIG$ii (func (param i32) (result i32)))
(import "env" "puts" (func $puts (param i32) (result i32)))
+ (table 0 anyfunc)
+ (memory $0 1)
+ (data (i32.const 16) "Hello, World!\00")
(export "memory" (memory $0))
(export "main" (func $main))
- (table 0 anyfunc)
-
(func $main (param $0 i32) (param $1 i32) (result i32)
(drop
(call $puts
diff --git a/test/dot_s/memops.wast b/test/dot_s/memops.wast
index e7b3490e1..71c08395f 100644
--- a/test/dot_s/memops.wast
+++ b/test/dot_s/memops.wast
@@ -1,12 +1,11 @@
(module
- (memory $0 1)
- (data (i32.const 16) "{ Module.print(\"hello, world! \" + HEAP32[8>>2]); }\00")
(type $FUNCSIG$vi (func (param i32)))
(import "env" "emscripten_asm_const_vi" (func $emscripten_asm_const_vi (param i32)))
+ (table 0 anyfunc)
+ (memory $0 1)
+ (data (i32.const 16) "{ Module.print(\"hello, world! \" + HEAP32[8>>2]); }\00")
(export "memory" (memory $0))
(export "main" (func $main))
- (table 0 anyfunc)
-
(func $_Z6reporti (param $0 i32)
(i32.store
(i32.const 8)
diff --git a/test/dot_s/minimal.wast b/test/dot_s/minimal.wast
index 5c95a4ffb..d9f4c18a6 100644
--- a/test/dot_s/minimal.wast
+++ b/test/dot_s/minimal.wast
@@ -1,9 +1,8 @@
(module
+ (table 0 anyfunc)
(memory $0 1)
(export "memory" (memory $0))
(export "main" (func $main))
- (table 0 anyfunc)
-
(func $main (result i32)
(return
(i32.const 5)
diff --git a/test/dot_s/permute.wast b/test/dot_s/permute.wast
index e1359ec7d..d72b5bd57 100644
--- a/test/dot_s/permute.wast
+++ b/test/dot_s/permute.wast
@@ -1,8 +1,7 @@
(module
+ (table 0 anyfunc)
(memory $0 1)
(data (i32.const 16) "hE?\8ds\0e7\db[g\8f\955it\c4k\0b\e2\ef\bcld\e0\fd\8c\9e\86&~\d8\94\89+\c8\a4\c2\f2\fb\12\1cej\d99\b7\b3W\c6w\af\ae\caM>\92ub\96\84\b6\b0N\ec;q\11\f7\bf\e31\e6\a7\90\fc\03\e4\aa\d7\cc- \15\83DH\80r\fa\01X\eb:_\00A\cd\e9o`n\ac(\ad\ba0\dcyS#\f4$\"\82\7f}\8e\f6\93L\'\bb\bdZ\ed4\18\f3\c0\cf\ff\a3\f8\07\05\9c\d3\0f\a0\06m%\\\f9^B<\e7\b1\17\98]\0c\dd\c5\f5p\e5\fezJ\ab,F\a5@\08R\85!\b8\1a\ce\d5\04\nI\a6\d1\9f\8a\c9\a9|\97\9aG\be8Y\8b\c1\1b\d4\ea\b9\19\14\9b\9163\d0\1d\d2\df=C\1f\0dc\e1\c7QUv\02\b5aK\b4\tV\c3x\e8\a1\1e\81\de/{\da\d6Pf\10T\f0)\88\16\ee\a8\9d\f1\cbO*\b2\99\132\87.\a2")
(export "memory" (memory $0))
- (table 0 anyfunc)
-
)
;; METADATA: { "asmConsts": {},"staticBump": 272, "initializers": [] }
diff --git a/test/dot_s/relocation.wast b/test/dot_s/relocation.wast
index 2d653518a..94dc69a3e 100644
--- a/test/dot_s/relocation.wast
+++ b/test/dot_s/relocation.wast
@@ -1,11 +1,10 @@
(module
+ (table 0 anyfunc)
(memory $0 1)
(data (i32.const 12) "\10\00\00\00")
(data (i32.const 16) "\0c\00\00\00")
(export "memory" (memory $0))
(export "main" (func $main))
- (table 0 anyfunc)
-
(func $main (result i32)
(local $0 i32)
(return
diff --git a/test/dot_s/return.wast b/test/dot_s/return.wast
index 21b81b215..339ea275c 100644
--- a/test/dot_s/return.wast
+++ b/test/dot_s/return.wast
@@ -1,10 +1,9 @@
(module
+ (table 0 anyfunc)
(memory $0 1)
(export "memory" (memory $0))
(export "return_i32" (func $return_i32))
(export "return_void" (func $return_void))
- (table 0 anyfunc)
-
(func $return_i32 (result i32)
(i32.const 5)
)
diff --git a/test/dot_s/start_main0.wast b/test/dot_s/start_main0.wast
index 835e56579..430da2675 100644
--- a/test/dot_s/start_main0.wast
+++ b/test/dot_s/start_main0.wast
@@ -1,11 +1,10 @@
(module
+ (table 0 anyfunc)
(memory $0 1)
- (start $_start)
(export "memory" (memory $0))
(export "main" (func $main))
(export "_start" (func $_start))
- (table 0 anyfunc)
-
+ (start $_start)
(func $main
)
(func $_start
diff --git a/test/dot_s/start_main2.wast b/test/dot_s/start_main2.wast
index 4aeb3c0b9..014e456a8 100644
--- a/test/dot_s/start_main2.wast
+++ b/test/dot_s/start_main2.wast
@@ -1,11 +1,10 @@
(module
+ (table 0 anyfunc)
(memory $0 1)
- (start $_start)
(export "memory" (memory $0))
(export "main" (func $main))
(export "_start" (func $_start))
- (table 0 anyfunc)
-
+ (start $_start)
(func $main (param $0 i32) (param $1 i32) (result i32)
(return
(get_local $0)
diff --git a/test/dot_s/symbolic-offset.wast b/test/dot_s/symbolic-offset.wast
index 6b64b6cc4..dafb6b705 100644
--- a/test/dot_s/symbolic-offset.wast
+++ b/test/dot_s/symbolic-offset.wast
@@ -1,10 +1,9 @@
(module
+ (table 0 anyfunc)
(memory $0 1)
(data (i32.const 12) "\01\00\00\00\00\00\00\00\00\00\00\00")
(export "memory" (memory $0))
(export "f" (func $f))
- (table 0 anyfunc)
-
(func $f (param $0 i32) (param $1 i32)
(i32.store offset=16
(get_local $0)
diff --git a/test/dot_s/text_before_type.wast b/test/dot_s/text_before_type.wast
index 5a86d133e..4a161a6aa 100644
--- a/test/dot_s/text_before_type.wast
+++ b/test/dot_s/text_before_type.wast
@@ -1,9 +1,8 @@
(module
+ (table 0 anyfunc)
(memory $0 1)
(export "memory" (memory $0))
(export "main" (func $main))
- (table 0 anyfunc)
-
(func $main (result i32)
(call $foo)
(i32.const 0)
diff --git a/test/dot_s/unreachable_blocks.wast b/test/dot_s/unreachable_blocks.wast
index d7e9ac095..a5176e633 100644
--- a/test/dot_s/unreachable_blocks.wast
+++ b/test/dot_s/unreachable_blocks.wast
@@ -1,8 +1,7 @@
(module
+ (table 0 anyfunc)
(memory $0 1)
(export "memory" (memory $0))
- (table 0 anyfunc)
-
(func $unreachable_block_void
(block $label$0
)
diff --git a/test/dot_s/visibilities.wast b/test/dot_s/visibilities.wast
index 14abb9bb2..99670851f 100644
--- a/test/dot_s/visibilities.wast
+++ b/test/dot_s/visibilities.wast
@@ -1,11 +1,10 @@
(module
+ (table 0 anyfunc)
(memory $0 1)
(export "memory" (memory $0))
(export "foo" (func $foo))
(export "bar" (func $bar))
(export "qux" (func $qux))
- (table 0 anyfunc)
-
(func $foo
(return)
)