summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/binary/bad-function-sig.txt2
-rw-r--r--test/dump/table.txt25
2 files changed, 25 insertions, 2 deletions
diff --git a/test/binary/bad-function-sig.txt b/test/binary/bad-function-sig.txt
index 056d7f9d..604da698 100644
--- a/test/binary/bad-function-sig.txt
+++ b/test/binary/bad-function-sig.txt
@@ -6,6 +6,6 @@ section(TYPE) { count[1] function params[1] i32 results[1] i32 }
section(FUNCTION) { count[1] type[1] }
(;; STDERR ;;;
Error running "wasm2wast":
-error: @0x00000014: invalid function signature index
+error: @0x00000014: invalid function signature index: 1
;;; STDERR ;;)
diff --git a/test/dump/table.txt b/test/dump/table.txt
index 16cbc35b..c4459a20 100644
--- a/test/dump/table.txt
+++ b/test/dump/table.txt
@@ -1,5 +1,5 @@
;;; TOOL: run-wasmdump
-;;; FLAGS: -v
+;;; FLAGS: -v --dump-verbose
(module
(type $t (func (param i32)))
(func (type $t))
@@ -88,6 +88,29 @@
0000032: 13 ; FIXUP section size
table.wasm: file format wasm 0x00000d
+Section Details:
+TYPE:
+ - [0] (i32) -> nil
+ - [1] (i32, i64) -> nil
+ - [2] () -> f64
+FUNCTION:
+ - func[0] sig=0
+ - func[1] sig=1
+ - func[2] sig=2
+TABLE:
+ - [0] type=anyfunc init=4 max=4
+ELEM:
+ - segment[0] table=0
+ - init i32=0
+ - func[0]
+ - func[0]
+ - func[1]
+ - func[2]
+CODE:
+ - func 0
+ - func 1
+ - func 2
+
Code Disassembly:
func 0
func 1