[lld][WebAssembly] Add test for --export of empty string
authorSam Clegg <sbc@chromium.org>
Fri, 27 Mar 2020 23:54:39 +0000 (16:54 -0700)
committerSam Clegg <sbc@chromium.org>
Sun, 12 Apr 2020 01:21:40 +0000 (18:21 -0700)
The actual bug was fixed in https://reviews.llvm.org/D74589

Differential Revision: https://reviews.llvm.org/D77084

lld/test/wasm/export-empty.test [new file with mode: 0644]

diff --git a/lld/test/wasm/export-empty.test b/lld/test/wasm/export-empty.test
new file mode 100644 (file)
index 0000000..1c0f7bb
--- /dev/null
@@ -0,0 +1,4 @@
+RUN: llc -filetype=obj %p/Inputs/start.ll -o %t.o
+RUN: not wasm-ld --export "" %t.o -o %t.wasm 2>&1 | FileCheck --match-full-lines %s
+
+CHECK: wasm-ld: error: symbol exported via --export not found: