Index: llvm/test/tools/llvm-ar/regular-to-thin-archive.test =================================================================== --- llvm/test/tools/llvm-ar/regular-to-thin-archive.test +++ llvm/test/tools/llvm-ar/regular-to-thin-archive.test @@ -5,6 +5,9 @@ # RUN: llvm-ar qc %t/archive.a %S/Inputs/a.txt # RUN: not llvm-ar q --thin %t/archive.a %s 2>&1 | FileCheck %s # RUN: not llvm-ar r --thin %t/archive.a %s 2>&1 | FileCheck %s +## Special case of replacing the same file, see: +## https://github.com/llvm/llvm-project/issues/55527 +# RUN: not llvm-ar r --thin %t/archive.a %S/Inputs/a.txt 2>&1 | FileCheck %s # CHECK: error: cannot convert a regular archive to a thin one