summaryrefslogtreecommitdiff
path: root/test/lit/merge/fusing.wat.second
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2024-02-08 15:27:02 -0800
committerGitHub <noreply@github.com>2024-02-08 15:27:02 -0800
commitf5d8d30171e53c225fc640e6db8aa42973c8804c (patch)
tree69744aa9a9a79252234a869531ec3954d0dad5b5 /test/lit/merge/fusing.wat.second
parente7b34702570110e7f5f0b2cd23bd768d900beb2b (diff)
downloadbinaryen-f5d8d30171e53c225fc640e6db8aa42973c8804c.tar.gz
binaryen-f5d8d30171e53c225fc640e6db8aa42973c8804c.tar.bz2
binaryen-f5d8d30171e53c225fc640e6db8aa42973c8804c.zip
Update lit tests to parse with the new parser (#6290)
Get as many of the lit tests as possible to parse with the new parser, mostly by moving declared module items to be after imports. Also fix a bug in the new parser's pop validation to allow supertypes of the expected type. The two big issues that still prevent some lit tests from working correctly under the new parser are missing support for symbolic field names and missing support for source map annotations.
Diffstat (limited to 'test/lit/merge/fusing.wat.second')
-rw-r--r--test/lit/merge/fusing.wat.second7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/lit/merge/fusing.wat.second b/test/lit/merge/fusing.wat.second
index 7ab9cc3f3..4a3c8d14c 100644
--- a/test/lit/merge/fusing.wat.second
+++ b/test/lit/merge/fusing.wat.second
@@ -6,6 +6,10 @@
;; Use a different prefix than in first ($main instead of $other).
(import "first" "bar" (func $main.bar))
+ (import "first" "mem" (memory $other.mem 1))
+
+ (import "first" "exn" (tag $exn))
+
(memory $second.mem 2)
(export "mem" (memory $second.mem))
@@ -26,8 +30,6 @@
)
)
- (import "first" "mem" (memory $other.mem 1))
-
(func $keepalive2 (export "keepalive2") (result i32)
;; Load from the memory imported from the second module.
(i32.load $other.mem
@@ -35,6 +37,5 @@
)
)
- (import "first" "exn" (tag $exn))
(func $keepalive3 (export "keepalive3") (throw $exn))
)