summaryrefslogtreecommitdiff
path: root/test/lit/passes/optimize-instructions-call_ref.wast
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2024-07-12 13:02:00 -0400
committerGitHub <noreply@github.com>2024-07-12 10:02:00 -0700
commitc0286b61a0eedde936ce1adff4284859ce4c6510 (patch)
tree109c9f7fcf5beb803a8df8aa5f9bfab2160d7dcd /test/lit/passes/optimize-instructions-call_ref.wast
parent22c28bd5a108f9bdacd1b60468e312903bcdf451 (diff)
downloadbinaryen-c0286b61a0eedde936ce1adff4284859ce4c6510.tar.gz
binaryen-c0286b61a0eedde936ce1adff4284859ce4c6510.tar.bz2
binaryen-c0286b61a0eedde936ce1adff4284859ce4c6510.zip
Do not abbreviate items in element segments (#6737)
The full syntax for an expression in an element syntax looks like `(item (ref.null none))`, but we have been printing the abbreviated version, which omits the `(item ...)`. This abbreviation is only valid when the item has only a single instruction, so it is not always correct to use it. Rather than determining whether or not to use the abbreviation on a case-by-case basis, always print the full syntax.
Diffstat (limited to 'test/lit/passes/optimize-instructions-call_ref.wast')
-rw-r--r--test/lit/passes/optimize-instructions-call_ref.wast2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lit/passes/optimize-instructions-call_ref.wast b/test/lit/passes/optimize-instructions-call_ref.wast
index 91aba5fed..937fbe6a7 100644
--- a/test/lit/passes/optimize-instructions-call_ref.wast
+++ b/test/lit/passes/optimize-instructions-call_ref.wast
@@ -23,7 +23,7 @@
;; CHECK: (table $table-1 10 (ref null $i32_i32_=>_none))
(table $table-1 10 (ref null $i32_i32_=>_none))
- ;; CHECK: (elem $elem-1 (table $table-1) (i32.const 0) (ref null $i32_i32_=>_none) (ref.func $foo))
+ ;; CHECK: (elem $elem-1 (table $table-1) (i32.const 0) (ref null $i32_i32_=>_none) (item (ref.func $foo)))
(elem $elem-1 (table $table-1) (i32.const 0) (ref null $i32_i32_=>_none)
(ref.func $foo))