2013-07-13 12:14:13 +08:00
|
|
|
Test the exact archive format. In particular, test which file names use the
|
|
|
|
string table or not.
|
|
|
|
|
|
|
|
RUN: mkdir -p %t
|
|
|
|
RUN: cd %t
|
|
|
|
|
2015-03-03 23:54:48 +08:00
|
|
|
RUN: echo -n bar. > 0123456789abcde
|
|
|
|
RUN: echo -n zed. > 0123456789abcdef
|
2013-07-13 12:14:13 +08:00
|
|
|
|
|
|
|
RUN: rm -f test.a
|
2015-07-10 04:12:50 +08:00
|
|
|
RUN: llvm-ar --format=gnu rc test.a 0123456789abcde 0123456789abcdef
|
2013-07-13 12:14:13 +08:00
|
|
|
RUN: cat test.a | FileCheck -strict-whitespace %s
|
|
|
|
|
|
|
|
CHECK: !<arch>
|
|
|
|
CHECK-NEXT: // 18 `
|
|
|
|
CHECK-NEXT: 0123456789abcdef/
|
2013-07-13 23:21:39 +08:00
|
|
|
CHECK-NEXT: 0123456789abcde/{{................................}}4 `
|
2015-03-03 23:54:48 +08:00
|
|
|
CHECK-NEXT: bar./0 {{................................}}4 `
|
|
|
|
CHECK-NEXT: zed.
|
2015-07-09 04:47:32 +08:00
|
|
|
|
|
|
|
RUN: rm -f test-bsd.a
|
|
|
|
RUN: llvm-ar --format=bsd rc test-bsd.a 0123456789abcde 0123456789abcdef
|
|
|
|
RUN: cat test-bsd.a | FileCheck -strict-whitespace --check-prefix=BSD %s
|
|
|
|
|
|
|
|
BSD: !<arch>
|
|
|
|
BSD-NEXT: #1/20 {{..............................}} 24 `
|
|
|
|
BSD-NEXT: 0123456789abcde{{.....}}bar.
|
|
|
|
BSD-SAME: #1/16 {{..............................}} 20 `
|
|
|
|
BSD-NEXT: 0123456789abcdefzed.
|