diff options
Diffstat (limited to 'test/lit/wasm-split/multi-memory-lowering-export-error.wast')
-rw-r--r-- | test/lit/wasm-split/multi-memory-lowering-export-error.wast | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/lit/wasm-split/multi-memory-lowering-export-error.wast b/test/lit/wasm-split/multi-memory-lowering-export-error.wast new file mode 100644 index 000000000..c631e48b1 --- /dev/null +++ b/test/lit/wasm-split/multi-memory-lowering-export-error.wast @@ -0,0 +1,9 @@ +;; RUN: not wasm-opt %s --multi-memory-lowering -all 2>&1 | filecheck %s + +(module + (memory $memory1 1) + (memory $memory2 1 1) + (export "mem" (memory $memory2)) +) + +;; CHECK: MultiMemoryLowering: only the first memory can be exported |