From: Sam Clegg Date: Fri, 27 Mar 2020 23:54:39 +0000 (-0700) Subject: [lld][WebAssembly] Add test for --export of empty string X-Git-Tag: llvmorg-12-init~9297 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9225ff62789e17250d3a958d1355481edf3f457b;p=platform%2Fupstream%2Fllvm.git [lld][WebAssembly] Add test for --export of empty string The actual bug was fixed in https://reviews.llvm.org/D74589 Differential Revision: https://reviews.llvm.org/D77084 --- diff --git a/lld/test/wasm/export-empty.test b/lld/test/wasm/export-empty.test new file mode 100644 index 0000000..1c0f7bb --- /dev/null +++ b/lld/test/wasm/export-empty.test @@ -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: