From 9225ff62789e17250d3a958d1355481edf3f457b Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Fri, 27 Mar 2020 16:54:39 -0700 Subject: [PATCH] [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 --- lld/test/wasm/export-empty.test | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 lld/test/wasm/export-empty.test 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: -- 2.7.4