summaryrefslogtreecommitdiff
path: root/test/lit/passes/merge-similar-functions_all-features.wast
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2024-02-06 14:05:27 -0800
committerGitHub <noreply@github.com>2024-02-06 14:05:27 -0800
commit3a41065a27fc4e65d563ae983a06cbe774ad2ea7 (patch)
treebf66bf0c28465a96d97076505efca306db3db429 /test/lit/passes/merge-similar-functions_all-features.wast
parent8cce4d103a2ee54e7f09e81fc25b982b060d0e41 (diff)
downloadbinaryen-3a41065a27fc4e65d563ae983a06cbe774ad2ea7.tar.gz
binaryen-3a41065a27fc4e65d563ae983a06cbe774ad2ea7.tar.bz2
binaryen-3a41065a27fc4e65d563ae983a06cbe774ad2ea7.zip
Properly stringify names in tests (#6279)
Update identifiers used in tests to use a format supported by the new text parser, i.e. either the standard format with its limited set of allowed characters or the non-standard `$"..."` format. Notably, any name containing square or curly braces now uses the string format. Input automatically updated with this script: https://gist.github.com/tlively/4e22311736661849e641d02e521a0748 The printer is updated to properly escape names in more places as well. The logic for escaping names is moved to a common location so that the type printing logic in wasm-type.cpp can use it as well.
Diffstat (limited to 'test/lit/passes/merge-similar-functions_all-features.wast')
-rw-r--r--test/lit/passes/merge-similar-functions_all-features.wast12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/lit/passes/merge-similar-functions_all-features.wast b/test/lit/passes/merge-similar-functions_all-features.wast
index ddc9a200f..74abd8c52 100644
--- a/test/lit/passes/merge-similar-functions_all-features.wast
+++ b/test/lit/passes/merge-similar-functions_all-features.wast
@@ -4,8 +4,8 @@
(module
;; CHECK: (type $0 (func))
- ;; CHECK: (type $[i8] (array i8))
- (type $[i8] (array i8))
+ ;; CHECK: (type $"[i8]" (array i8))
+ (type $"[i8]" (array i8))
;; CHECK: (type $2 (func (param arrayref)))
@@ -50,7 +50,7 @@
;; CHECK-NEXT: (nop)
;; CHECK-NEXT: (nop)
;; CHECK-NEXT: (call $take-ref-null-array
- ;; CHECK-NEXT: (array.new_fixed $[i8] 0)
+ ;; CHECK-NEXT: (array.new_fixed $"[i8]" 0)
;; CHECK-NEXT: )
;; CHECK-NEXT: )
(func $no-call-subtyping-same-operand-0
@@ -58,7 +58,7 @@
(nop) (nop) (nop) (nop) (nop) (nop)
(nop) (nop) (nop) (nop) (nop) (nop)
(call $take-ref-null-array
- (array.new_fixed $[i8] 0)
+ (array.new_fixed $"[i8]" 0)
)
)
;; CHECK: (func $no-call-subtyping-same-operand-1 (type $0)
@@ -81,7 +81,7 @@
;; CHECK-NEXT: (nop)
;; CHECK-NEXT: (nop)
;; CHECK-NEXT: (call $take-ref-eq
- ;; CHECK-NEXT: (array.new_fixed $[i8] 0)
+ ;; CHECK-NEXT: (array.new_fixed $"[i8]" 0)
;; CHECK-NEXT: )
;; CHECK-NEXT: )
(func $no-call-subtyping-same-operand-1
@@ -89,7 +89,7 @@
(nop) (nop) (nop) (nop) (nop) (nop)
(nop) (nop) (nop) (nop) (nop) (nop)
(call $take-ref-eq
- (array.new_fixed $[i8] 0)
+ (array.new_fixed $"[i8]" 0)
)
)
)