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
12 lines
300 B
Plaintext
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
|