diff options
Diffstat (limited to 'llvm/test/tools/llvm-ar/flatten-thin-archive-recursive.test')
-rw-r--r-- | llvm/test/tools/llvm-ar/flatten-thin-archive-recursive.test | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-ar/flatten-thin-archive-recursive.test b/llvm/test/tools/llvm-ar/flatten-thin-archive-recursive.test new file mode 100644 index 00000000000..fdd752d48b2 --- /dev/null +++ b/llvm/test/tools/llvm-ar/flatten-thin-archive-recursive.test @@ -0,0 +1,13 @@ +# Since llvm-ar cannot create thin archives that contain any thin archives, +# nested-thin-archive.a is a manually constructed thin archive that contains +# another (unflattened) thin archive. +# This test ensures that flat archives are recursively flattened. + +RUN: rm -f %t.a +RUN: llvm-ar rcsT %t.a %S/Inputs/nested-thin-archive.a %S/Inputs/d.txt +RUN: llvm-ar t %t.a | FileCheck %s + +CHECK: a.txt +CHECK-NEXT: b.txt +CHECK-NEXT: c.txt +CHECK-NEXT: d.txt |