1# REQUIRES: x86
2# RUN: echo "!<arch>" > %t.a
3# RUN: echo "foo" >> %t.a
4# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t.o
5
6# RUN: not %lld %t.o %t.a -o /dev/null 2>&1 | FileCheck -DFILE=%t.a %s
7# RUN: not %lld %t.o -force_load %t.a -o /dev/null 2>&1 | FileCheck -DFILE=%t.a %s
8# 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)
9
10.global _main
11_main:
12  ret
13