xref: /llvm-project/llvm/test/tools/llvm-link/archive-bad.test (revision 353fb1af0419a6f169871c807e17e20dee40eabd)
1# RUN: echo -e '!<arch>\nwith invalid contents' > %t.fg.a
2# RUN: not llvm-link %S/Inputs/h.ll %t.fg.a -o %t.linked.bc 2>&1 | FileCheck %s
3
4# RUN: rm -f %t.fg.a
5# RUN: rm -f %t.linked.bc
6
7# CHECK: truncated or malformed archive
8