16 lines · plain
1## Test regular archives do not convert to thin archives2## in the special case of replacing a single file in an3## archive with itself from the current directory.4 5# RUN: rm -rf %t && mkdir -p %t && cd %t6# RUN: echo "a" > a.txt7# RUN: llvm-ar --format=gnu cr foo.a a.txt 2>&18 9## Check that an error is issued.10# RUN: not llvm-ar --format=gnu cr --thin foo.a a.txt 2>&1 | FileCheck %s11# CHECK: error: cannot convert a regular archive to a thin one12 13## Check that the archive is still the correct flavor.14# RUN: FileCheck --input-file=foo.a %s --check-prefix=REGULAR15# REGULAR: !<arch>16