summaryrefslogtreecommitdiff
path: root/test/lit/wasm-split/export-name-already-exists.wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/lit/wasm-split/export-name-already-exists.wast')
-rw-r--r--test/lit/wasm-split/export-name-already-exists.wast8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/lit/wasm-split/export-name-already-exists.wast b/test/lit/wasm-split/export-name-already-exists.wast
new file mode 100644
index 000000000..708929e98
--- /dev/null
+++ b/test/lit/wasm-split/export-name-already-exists.wast
@@ -0,0 +1,8 @@
+;; RUN: not wasm-split %s --instrument --profile-export=foo 2>&1 \
+;; RUN: | filecheck %s
+
+;; CHECK: error: Export foo already exists.
+
+(module
+ (export "foo" (memory 0 0))
+)