diff options
-rw-r--r-- | lld/test/ELF/Inputs/bad-archive.a | 2 | ||||
-rw-r--r-- | lld/test/ELF/bad-archive.s | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/lld/test/ELF/Inputs/bad-archive.a b/lld/test/ELF/Inputs/bad-archive.a new file mode 100644 index 00000000000..c9c6fbfd914 --- /dev/null +++ b/lld/test/ELF/Inputs/bad-archive.a @@ -0,0 +1,2 @@ +!<arch> +this is malformed archive used in bad-archive.s diff --git a/lld/test/ELF/bad-archive.s b/lld/test/ELF/bad-archive.s index ed9567b2b23..39c8e160f95 100644 --- a/lld/test/ELF/bad-archive.s +++ b/lld/test/ELF/bad-archive.s @@ -3,11 +3,9 @@ // Check bad archive error reporting with --whole-archive // and without it. // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o -// RUN: echo "!<arch>" > %t.bad.a -// RUN: echo "bad archive" >> %t.bad.a -// RUN: not ld.lld %t.o %t.bad.a -o %t 2>&1 | FileCheck %s -// RUN: not ld.lld %t.o --whole-archive %t.bad.a -o %t 2>&1 | FileCheck %s -// CHECK: {{.*}}.bad.a: failed to parse archive +// RUN: not ld.lld %t.o %p/Inputs/bad-archive.a -o %t 2>&1 | FileCheck %s +// RUN: not ld.lld %t.o --whole-archive %p/Inputs/bad-archive.a -o %t 2>&1 | FileCheck %s +// CHECK: bad-archive.a: failed to parse archive .globl _start _start: |