1Test the exact archive format. In particular, test which file names use the
2string table or not.
3
4RUN: mkdir -p %t
5RUN: cd %t
6
7RUN: echo -n bar. > 0123456789abcde
8RUN: echo -n zed. > 0123456789abcdef
9
10RUN: rm -f test.a
11RUN: llvm-ar --format=gnu rc test.a 0123456789abcde 0123456789abcdef
12RUN: cat test.a | FileCheck -strict-whitespace %s
13
14CHECK:      !<arch>
15CHECK-NEXT: //                                              18        `
16CHECK-NEXT: 0123456789abcdef/
17CHECK-NEXT: 0123456789abcde/{{................................}}4         `
18CHECK-NEXT: bar./0              {{................................}}4         `
19CHECK-NEXT: zed.
20
21RUN: rm -f test-bsd.a
22RUN: llvm-ar --format=bsd rc test-bsd.a 0123456789abcde 0123456789abcdef
23RUN: cat test-bsd.a | FileCheck -strict-whitespace --check-prefix=BSD %s
24
25BSD:      !<arch>
26BSD-NEXT: #1/20           {{..............................}}  24        `
27BSD-NEXT: 0123456789abcde{{.....}}bar.
28BSD-SAME: #1/16           {{..............................}}  20        `
29BSD-NEXT: 0123456789abcdefzed.
30