summaryrefslogtreecommitdiff
path: root/test/wasm/conflict.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/wasm/conflict.test')
-rw-r--r--test/wasm/conflict.test6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/wasm/conflict.test b/test/wasm/conflict.test
new file mode 100644
index 0000000000000..a0a2eb4e3b3a5
--- /dev/null
+++ b/test/wasm/conflict.test
@@ -0,0 +1,6 @@
+# RUN: llc -filetype=obj -mtriple=wasm32-unknown-uknown-wasm %p/Inputs/ret32.ll -o %t.ret32.o
+# RUN: not lld -flavor wasm -o %t.wasm %t.ret32.o %t.ret32.o 2>&1 | FileCheck %s
+
+# CHECK: duplicate symbol: ret32
+# CHECK-NEXT: >>> defined in {{.*}}conflict.test.tmp.ret32.o
+# CHECK-NEXT: >>> defined in {{.*}}conflict.test.tmp.ret32.o