summaryrefslogtreecommitdiff
path: root/test/lit/wasm-split/multi-memory-lowering-import-error.wast
diff options
context:
space:
mode:
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.wast8
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