llvm-project/llvm/test/Object/ar-create.test
zhijian fe3b621f05 [AIX] support write operation of big archive.
SUMMARY

1. Enable supporting the write operation of big archive.
2. the first commit come from https://reviews.llvm.org/D104367
3. refactor the first commit and implement writing symbol table.
4. fixed the bugs and add more test cases in the second commit.

Reviewers: James Henderson
Differential Revision: https://reviews.llvm.org/D123949
2022-05-13 10:40:15 -04:00

18 lines
630 B
Plaintext

Test which operations create an archive and which don't.
RUN: touch %t
RUN: rm -f %t.foo.a
RUN: not llvm-ar p %t.foo.a %t 2>&1 | FileCheck %s
RUN: not llvm-ar d %t.foo.a %t 2>&1 | FileCheck %s
RUN: not llvm-ar m %t.foo.a %t 2>&1 | FileCheck %s
RUN: not llvm-ar t %t.foo.a %t 2>&1 | FileCheck %s
RUN: not llvm-ar x %t.foo.a %t 2>&1 | FileCheck %s
RUN: llvm-ar q %t.foo.a %t 2>&1 | FileCheck --check-prefix=CREATE %s
RUN: rm -f %t.foo.a
RUN: llvm-ar r %t.foo.a %t 2>&1 | FileCheck --check-prefix=CREATE %s
RUN: rm -f %t.foo.a
CHECK: llvm-ar{{(.exe|.EXE)?}}: error: unable to load '{{[^']+}}.foo.a':
CREATE: creating {{.*}}.foo.a