1# This test creates a thin archive that contains a thin archive, a regular
2# archive, and a file.
3#
4# The inner thin archive should be flattened, but the regular archive should
5# not. The order of members in the archive should match the input order, with
6# flattened members appearing together.
7
8RUN: touch %t-a.txt %t-b.txt %t-c.txt %t-d.txt %t-e.txt
9RUN: rm -f %t-a-plus-b.a %t-d-plus-e.a %t.a
10RUN: llvm-ar rcsT %t-a-plus-b.a %t-a.txt %t-b.txt
11RUN: llvm-ar rcs %t-d-plus-e.a %t-d.txt %t-e.txt
12RUN: llvm-ar rcsT %t.a %t-a-plus-b.a %t-c.txt %t-d-plus-e.a
13RUN: llvm-ar t %t.a | FileCheck %s
14
15CHECK:      a.txt
16CHECK-NEXT: b.txt
17CHECK-NEXT: c.txt
18CHECK-NEXT: -d-plus-e.a
19