[PATCH] D125785: [llvm-ar][test] Add regression test for special case of replace converting a regular to a full archive (issue 55527)

ben via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 17 06:51:37 PDT 2022


bd1976llvm created this revision.
Herald added a subscriber: rupprecht.
Herald added a project: All.
bd1976llvm requested review of this revision.
Herald added subscribers: llvm-commits, MaskRay.
Herald added a project: LLVM.

Add a regression test for: https://github.com/llvm/llvm-project/issues/55527


https://reviews.llvm.org/D125785

Files:
  llvm/test/tools/llvm-ar/regular-to-thin-archive.test


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
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125785.429995.patch
Type: text/x-patch
Size: 689 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220517/05ee3049/attachment.bin>


More information about the llvm-commits mailing list