diff options
author | Sam Clegg <sbc@chromium.org> | 2018-02-02 00:30:03 +0000 |
---|---|---|
committer | Sam Clegg <sbc@chromium.org> | 2018-02-02 00:30:03 +0000 |
commit | 279c850cf295c9a6f043d50552c77f4867999cb3 (patch) | |
tree | 16f57a01ea378964776b1a7df18477666fce3b29 /lld/test/wasm/undefined.ll | |
parent | d0de239f7025f3887e211a62f5441d282601cc2d (diff) | |
download | bcm5719-llvm-279c850cf295c9a6f043d50552c77f4867999cb3.tar.gz bcm5719-llvm-279c850cf295c9a6f043d50552c77f4867999cb3.zip |
[WebAssembly] Fix signature mismatches in test code
Pass --check-signatures to test executions of lld and
fix resulting errors.
Differential Revision: https://reviews.llvm.org/D42661
llvm-svn: 324042
Diffstat (limited to 'lld/test/wasm/undefined.ll')
-rw-r--r-- | lld/test/wasm/undefined.ll | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lld/test/wasm/undefined.ll b/lld/test/wasm/undefined.ll index 485862ca340..aabee79c7e2 100644 --- a/lld/test/wasm/undefined.ll +++ b/lld/test/wasm/undefined.ll @@ -1,13 +1,13 @@ ; RUN: llc -filetype=obj %s -o %t.o -; RUN: lld -flavor wasm --allow-undefined -o %t.wasm %t.o +; RUN: lld -flavor wasm --check-signatures --allow-undefined -o %t.wasm %t.o ; Fails due to undefined 'foo' -; RUN: not lld -flavor wasm -o %t.wasm %t.o 2>&1 | FileCheck %s +; RUN: not lld -flavor wasm --check-signatures -o %t.wasm %t.o 2>&1 | FileCheck %s ; CHECK: error: {{.*}}.o: undefined symbol: foo ; But succeeds if we pass a file containing 'foo' as --allow-undefined-file. ; RUN: echo 'foo' > %t.txt -; RUN: lld -flavor wasm --allow-undefined-file=%t.txt -o %t.wasm %t.o +; RUN: lld -flavor wasm --check-signatures --allow-undefined-file=%t.txt -o %t.wasm %t.o target triple = "wasm32-unknown-unknown-wasm" |