summaryrefslogtreecommitdiff
path: root/test/lit/merge/memory_data.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/memory_data.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/memory_data.wat.second')
-rw-r--r--test/lit/merge/memory_data.wat.second6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/lit/merge/memory_data.wat.second b/test/lit/merge/memory_data.wat.second
index 8af6ba36d..4a738877d 100644
--- a/test/lit/merge/memory_data.wat.second
+++ b/test/lit/merge/memory_data.wat.second
@@ -1,11 +1,11 @@
(module
+ ;; Test that the import remains
+ (import "import" "mem" (memory $imported 10000))
+
(memory $other 100)
(memory $bar 1000)
- ;; Test that the import remains
- (import "import" "mem" (memory $imported 10000))
-
(data $a (memory $other) (i32.const 0) "a2")
(data $b (memory $bar) (i32.const 0) "b2")