1## Test reading an archive with malformed header. 2# RUN: echo "<bigaf>" > %t.a 3# RUN: not llvm-ar tv %t.a 2>&1 | FileCheck --check-prefix=CHECK-HEADER %s 4# CHECK-HEADER: truncated or malformed archive{{.*}}malformed AIX big archive: incomplete fixed length header 5 6## Test reading an empty archive with first member's offset is not zero. 7# RUN: echo "<bigaf>" > %t.a 8# RUN: echo -n "0 0 0 128 0 0 " >> %t.a 9# RUN: not llvm-ar tv %t.a 2>&1 | FileCheck %s 10 11# RUN: echo "<bigaf>" > %t.a 12# RUN: echo -n "0 0 0 28 0 0 " >> %t.a 13# RUN: not llvm-ar tv %t.a 2>&1 | FileCheck %s 14 15# CHECK: truncated or malformed archive{{.*}}malformed AIX big archive: remaining buffer is unable to contain next archive member 16