zhijian cad178274c [AIX][XCOFF] print unsupported message for llvm-ar big archive write operation
Summary:

when run "llvm-ar cr" on AIX OS , it created a gnu archive, it is not desirable in aix OS.
instead of creating a gnu archive, the patch will print a unsupport message for llvm-ar big archive write operation in AIX OS.

after implement the big archive operation, I will revert the XFAIL: AIX " and "--format=gnu" test cases in the patch.

Reviewer : James Henderson, Jinsong Ji
Differential Revision: https://reviews.llvm.org/D122746
2022-04-01 11:55:11 -04:00

15 lines
369 B
Plaintext

XFAIL: system-aix
## Test the creation warning and supression of that warning.
RUN: touch %t1.txt
RUN: touch %t2.txt
RUN: rm -f %t.warning.ar
RUN: llvm-ar r %t.warning.ar %t1.txt %t2.txt 2>&1 \
RUN: | FileCheck %s -DOUTPUT=%t.warning.ar
CHECK: warning: creating [[OUTPUT]]
RUN: rm -f %t.supressed.ar
RUN: llvm-ar cr %t.supressed.ar %t1.txt %t2.txt 2>&1 | count 0