[PATCH] D43846: [WebAssembly] Add test for `--undefined` flag. NFC.

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 27 17:46:27 PST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rLLD326294: [WebAssembly] Add test for `--undefined` flag. NFC. (authored by sbc, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D43846?vs=136205&id=136208#toc

Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D43846

Files:
  test/wasm/undefined.ll


Index: test/wasm/undefined.ll
===================================================================
--- test/wasm/undefined.ll
+++ test/wasm/undefined.ll
@@ -1,9 +1,10 @@
 ; RUN: llc -filetype=obj %s -o %t.o
 ; RUN: wasm-ld --check-signatures --allow-undefined -o %t.wasm %t.o
 
-; Fails due to undefined 'foo'
-; RUN: not wasm-ld --check-signatures -o %t.wasm %t.o 2>&1 | FileCheck %s
+; Fails due to undefined 'foo' and also 'baz'
+; RUN: not wasm-ld --check-signatures --undefined=baz -o %t.wasm %t.o 2>&1 | FileCheck %s
 ; CHECK: error: {{.*}}.o: undefined symbol: foo
+; CHECK: error: undefined symbol: baz
 
 ; But succeeds if we pass a file containing 'foo' as --allow-undefined-file.
 ; RUN: echo 'foo' > %t.txt


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43846.136208.patch
Type: text/x-patch
Size: 718 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180228/4b48e5a5/attachment.bin>


More information about the llvm-commits mailing list