summaryrefslogtreecommitdiff
path: root/test/lit
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2024-08-06 10:17:40 -0700
committerGitHub <noreply@github.com>2024-08-06 10:17:40 -0700
commit6fe3d885604bb053979f4e5adad2840ea936fd17 (patch)
tree551e57f5325df334d2fd01393053eb786ba25ef6 /test/lit
parente2e5b9cf70c8a81492db259e1a17294064a69157 (diff)
downloadbinaryen-6fe3d885604bb053979f4e5adad2840ea936fd17.tar.gz
binaryen-6fe3d885604bb053979f4e5adad2840ea936fd17.tar.bz2
binaryen-6fe3d885604bb053979f4e5adad2840ea936fd17.zip
Make source parser consistent with binary parser when naming things. NFC (#6813)
The `timport$` prefix is already used for tables, so the binary parser currently uses `eimport$` to name tags (I guess because they are normally exception tags?).
Diffstat (limited to 'test/lit')
-rw-r--r--test/lit/basic/tags.wast4
-rw-r--r--test/lit/validation/extended-const.wast2
-rw-r--r--test/lit/wat-kitchen-sink.wast14
3 files changed, 10 insertions, 10 deletions
diff --git a/test/lit/basic/tags.wast b/test/lit/basic/tags.wast
index cd0615eab..7d99816c1 100644
--- a/test/lit/basic/tags.wast
+++ b/test/lit/basic/tags.wast
@@ -25,9 +25,9 @@
;; CHECK-TEXT: (import "env" "im0" (tag $e-import (param i32)))
- ;; CHECK-TEXT: (import "env" "im1" (tag $timport$0 (param i32 f32)))
+ ;; CHECK-TEXT: (import "env" "im1" (tag $eimport$0 (param i32 f32)))
- ;; CHECK-TEXT: (tag $1 (param i32))
+ ;; CHECK-TEXT: (tag $tag$1 (param i32))
;; CHECK-TEXT: (tag $e (param i32 f32))
;; CHECK-BIN: (type $0 (func (param i32 f32)))
diff --git a/test/lit/validation/extended-const.wast b/test/lit/validation/extended-const.wast
index 36ffee430..cd87d4ccb 100644
--- a/test/lit/validation/extended-const.wast
+++ b/test/lit/validation/extended-const.wast
@@ -8,7 +8,7 @@
;; NO-EXTENDED: unexpected false: table segment offset must be constant
;; EXTENDED: (import "env" "global" (global $gimport$0 i32))
-;; EXTENDED: (global $1 i32 (i32.add
+;; EXTENDED: (global $global$1 i32 (i32.add
;; EXTENDED: (global.get $gimport$0)
;; EXTENDED: (i32.const 42)
;; EXTENDED: ))
diff --git a/test/lit/wat-kitchen-sink.wast b/test/lit/wat-kitchen-sink.wast
index 10f581d21..ac8a00cc2 100644
--- a/test/lit/wat-kitchen-sink.wast
+++ b/test/lit/wat-kitchen-sink.wast
@@ -302,11 +302,11 @@
;; CHECK: (import "mod" "t0" (tag $imported (param i32 i64)))
- ;; CHECK: (import "mod" "t1" (tag $timport$0))
+ ;; CHECK: (import "mod" "t1" (tag $eimport$0))
- ;; CHECK: (import "mod" "imported-tag" (tag $timport$1))
+ ;; CHECK: (import "mod" "imported-tag" (tag $eimport$1))
- ;; CHECK: (global $2 (mut i32) (i32.const 0))
+ ;; CHECK: (global $global$2 (mut i32) (i32.const 0))
;; CHECK: (global $i32 i32 (i32.const 42))
(global $i32 i32 i32.const 42)
@@ -413,7 +413,7 @@
;; tags
(tag)
- ;; CHECK: (tag $2)
+ ;; CHECK: (tag $tag$2)
;; CHECK: (tag $empty)
(tag $empty)
@@ -1919,7 +1919,7 @@
;; CHECK-NEXT: (catch $empty
;; CHECK-NEXT: (nop)
;; CHECK-NEXT: )
- ;; CHECK-NEXT: (catch $timport$0
+ ;; CHECK-NEXT: (catch $eimport$0
;; CHECK-NEXT: (nop)
;; CHECK-NEXT: )
;; CHECK-NEXT: (catch_all
@@ -2228,7 +2228,7 @@
;; CHECK-NEXT: (nop)
;; CHECK-NEXT: (nop)
;; CHECK-NEXT: )
- ;; CHECK-NEXT: (catch $timport$0
+ ;; CHECK-NEXT: (catch $eimport$0
;; CHECK-NEXT: (nop)
;; CHECK-NEXT: (nop)
;; CHECK-NEXT: )
@@ -3710,7 +3710,7 @@
)
;; CHECK: (func $throw (type $0)
- ;; CHECK-NEXT: (throw $timport$1)
+ ;; CHECK-NEXT: (throw $eimport$1)
;; CHECK-NEXT: (throw $tag-i32
;; CHECK-NEXT: (i32.const 0)
;; CHECK-NEXT: )