Files
clang-p2996/llvm/test/tools/llvm-ar/display-empty.test
zhijian 52c615553c [AIX] fixed llvm-ar can not read empty big archive correctly.
Summary:

llvm-ar can not read empty big archive correctly. it output error as
error: unable to load 'empty.a': truncated or malformed archive (characters in size field in archive member header are not all decimal numbers: '<bigaf>'

Reviewers: James Henderson
Differential Revision: https://reviews.llvm.org/D124017
2022-05-16 14:29:37 -04:00

12 lines
300 B
Plaintext

## Test Display of empty archives.
# RUN: rm -rf %t && mkdir -p %t
## Display empty archive:
# RUN: llvm-ar cr %t/empty.a
# RUN: llvm-ar tv %t/empty.a 2>&1 | count 0
## Display empty thin archive:
# RUN: llvm-ar Trc %t/thin-archive-empty.a
# RUN: llvm-ar tv %t/thin-archive-empty.a 2>&1 | count 0