diff options
author | Ashley Nelson <nashley@google.com> | 2023-01-03 12:37:35 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-03 20:37:35 +0000 |
commit | 5fefa9361a0d958dd7977907eaf1ae8facf3ba48 (patch) | |
tree | bdc3f2973213f34233f57a92e60b2cc9e9d98199 /test/lit/wasm-split/multi-memory-lowering-import-error.wast | |
parent | f36229b509ddb59e7ab20cd6fd3ccd962e9990a5 (diff) | |
download | binaryen-5fefa9361a0d958dd7977907eaf1ae8facf3ba48.tar.gz binaryen-5fefa9361a0d958dd7977907eaf1ae8facf3ba48.tar.bz2 binaryen-5fefa9361a0d958dd7977907eaf1ae8facf3ba48.zip |
Maintain first memory import/export in Multi-Memory Lowering Pass (#5363)
This PR maintains the first memory's import/export in the single combined memory after multi-memories are lowered.
Diffstat (limited to 'test/lit/wasm-split/multi-memory-lowering-import-error.wast')
-rw-r--r-- | test/lit/wasm-split/multi-memory-lowering-import-error.wast | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/lit/wasm-split/multi-memory-lowering-import-error.wast b/test/lit/wasm-split/multi-memory-lowering-import-error.wast new file mode 100644 index 000000000..f697db40b --- /dev/null +++ b/test/lit/wasm-split/multi-memory-lowering-import-error.wast @@ -0,0 +1,8 @@ +;; RUN: not wasm-opt %s --multi-memory-lowering -all 2>&1 | filecheck %s + +(module + (memory $memory1 1) + (import "env" "mem" (memory $memory2 1 1)) +) + +;; CHECK: MultiMemoryLowering: only the first memory can be imported |