summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/binary/names.txt6
-rwxr-xr-xtest/gen-wasm.py1
-rw-r--r--test/roundtrip/debug-names.txt2
3 files changed, 7 insertions, 2 deletions
diff --git a/test/binary/names.txt b/test/binary/names.txt
index a6110d34..d48762f1 100644
--- a/test/binary/names.txt
+++ b/test/binary/names.txt
@@ -11,6 +11,10 @@ section(CODE) {
}
}
section("name") {
+ section(NAME_MODULE) {
+ str("M0")
+ }
+
section(NAME_FUNCTION) {
func_count[1]
index[0]
@@ -26,7 +30,7 @@ section("name") {
}
}
(;; STDOUT ;;;
-(module
+(module $M0
(type (;0;) (func (result i32)))
(func $F0 (type 0) (result i32)
(local $L0 i32)
diff --git a/test/gen-wasm.py b/test/gen-wasm.py
index 04247929..4ecc5a5c 100755
--- a/test/gen-wasm.py
+++ b/test/gen-wasm.py
@@ -64,6 +64,7 @@ NAMED_VALUES = {
'DATA': 11,
# name subsection codes
+ 'NAME_MODULE': 0,
'NAME_FUNCTION': 1,
'NAME_LOCALS': 2,
diff --git a/test/roundtrip/debug-names.txt b/test/roundtrip/debug-names.txt
index 4c777543..f890ba13 100644
--- a/test/roundtrip/debug-names.txt
+++ b/test/roundtrip/debug-names.txt
@@ -1,6 +1,6 @@
;;; TOOL: run-roundtrip
;;; ARGS: --debug-names
-(module
+(module $m1
(func $f1)
(func $f2 (param $p1 i32) (param $p2 i64)
(local $l1 f32)