diff options
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" |