3 // Check bad archive error reporting with
--whole-archive
6 // RUN
: echo
"!<arch>" > %t.
a
7 // RUN
: echo
"foo" >> %t.
a
8 // RUN
: llvm-mc
-filetype
=obj
-triple
=x86_64-unknown-linux
%s
-o
%t.o
9 // RUN
: not ld.lld
%t.o
%t.
a -o
/dev
/null
2>&1 | FileCheck
-DFILE
=%t.
a %s
10 // RUN
: not ld.lld
%t.o
--whole-archive
%t.
a -o
/dev
/null
2>&1 | FileCheck
-DFILE
=%t.
a %s
11 // CHECK
: error
: [[FILE
]]: failed to parse archive
: truncated
or malformed archive
(remaining size of archive too small for next archive member header at offset
8)