[lld] 9225ff6 - [lld][WebAssembly] Add test for --export of empty string

Sam Clegg via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 11 18:21:53 PDT 2020


Author: Sam Clegg
Date: 2020-04-11T18:21:40-07:00
New Revision: 9225ff62789e17250d3a958d1355481edf3f457b

URL: https://github.com/llvm/llvm-project/commit/9225ff62789e17250d3a958d1355481edf3f457b
DIFF: https://github.com/llvm/llvm-project/commit/9225ff62789e17250d3a958d1355481edf3f457b.diff

LOG: [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

Added: 
    lld/test/wasm/export-empty.test

Modified: 
    

Removed: 
    


################################################################################
diff  --git a/lld/test/wasm/export-empty.test b/lld/test/wasm/export-empty.test
new file mode 100644
index 000000000000..1c0f7bbc779d
--- /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: 


        


More information about the llvm-commits mailing list