summaryrefslogtreecommitdiff
path: root/test/lit/merge/memory_data.wat.second
diff options
context:
space:
mode:
authorJérôme Vouillon <jerome.vouillon@gmail.com>2023-05-26 22:53:47 +0200
committerGitHub <noreply@github.com>2023-05-26 13:53:47 -0700
commit26ad3ffc326d54f893eee3f1d520b8f4c1cbfe11 (patch)
treead11f77ba49266316d127ef99f2db911e530a837 /test/lit/merge/memory_data.wat.second
parente8ac658a5db2fadc93c3d317d465eed253e191ed (diff)
downloadbinaryen-26ad3ffc326d54f893eee3f1d520b8f4c1cbfe11.tar.gz
binaryen-26ad3ffc326d54f893eee3f1d520b8f4c1cbfe11.tar.bz2
binaryen-26ad3ffc326d54f893eee3f1d520b8f4c1cbfe11.zip
wasm-merge: Preserve imports when copying module items (#5743)
The import information of Tags and Memories was not preserved.
Diffstat (limited to 'test/lit/merge/memory_data.wat.second')
-rw-r--r--test/lit/merge/memory_data.wat.second5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/lit/merge/memory_data.wat.second b/test/lit/merge/memory_data.wat.second
index 0ea34dbcd..8af6ba36d 100644
--- a/test/lit/merge/memory_data.wat.second
+++ b/test/lit/merge/memory_data.wat.second
@@ -3,6 +3,9 @@
(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")
@@ -10,4 +13,6 @@
(export "keepalive" (memory $other))
(export "keepalive1" (memory $bar))
+
+ (export "keepalive2" (memory $imported))
)