diff options
author | Jérôme Vouillon <jerome.vouillon@gmail.com> | 2023-05-26 22:53:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-26 13:53:47 -0700 |
commit | 26ad3ffc326d54f893eee3f1d520b8f4c1cbfe11 (patch) | |
tree | ad11f77ba49266316d127ef99f2db911e530a837 /test/lit/merge/memory_data.wat.second | |
parent | e8ac658a5db2fadc93c3d317d465eed253e191ed (diff) | |
download | binaryen-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.second | 5 |
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)) ) |