xref: /llvm-project/llvm/test/tools/llvm-ar/flatten-thin-archive-recursive.test (revision 904ce9847d2bf5b73a17a1c067a06f055635fe8b)
1# Since llvm-ar cannot create thin archives that contain any thin archives,
2# nested-thin-archive.a is a manually constructed thin archive that contains
3# another (unflattened) thin archive.
4# This test ensures that flat archives are recursively flattened.
5
6RUN: rm -f %t.a
7RUN: llvm-ar rcsT %t.a %S/Inputs/nested-thin-archive.a %S/Inputs/d.txt
8RUN: llvm-ar t %t.a | FileCheck %s
9
10CHECK:      a.txt
11CHECK-NEXT: b.txt
12CHECK-NEXT: c.txt
13CHECK-NEXT: d.txt
14