Create a wrapper pass for BranchProbabilityInfo.
[oota-llvm.git] / test / Object / archive-format.test
1 Test the exact archive format. In particular, test which file names use the
2 string table or not.
3
4 RUN: mkdir -p %t
5 RUN: cd %t
6
7 RUN: echo -n bar. > 0123456789abcde
8 RUN: echo -n zed. > 0123456789abcdef
9
10 RUN: rm -f %t.a
11 RUN: llvm-ar --format=gnu rc %t.a 0123456789abcde 0123456789abcdef
12 RUN: cat %t.a | FileCheck -strict-whitespace %s
13
14 CHECK:      !<arch>
15 CHECK-NEXT: //                                              18        `
16 CHECK-NEXT: 0123456789abcdef/
17 CHECK-NEXT: 0123456789abcde/0           0     0     644     4         `
18 CHECK-NEXT: bar./0              0           0     0     644     4         `
19 CHECK-NEXT: zed.
20
21 RUN: rm -f %t.a
22 RUN: llvm-ar --format=bsd rc %t.a 0123456789abcde 0123456789abcdef
23 RUN: cat %t.a | FileCheck -strict-whitespace --check-prefix=BSD %s
24
25 BSD:      !<arch>
26 BSD-NEXT: #1/20           0           0     0     644     24        `
27 BSD-NEXT: 0123456789abcde{{.....}}bar.
28 BSD-SAME: #1/16           0           0     0     644     20        `
29 BSD-NEXT: 0123456789abcdefzed.
30
31 RUN: rm -f %t.a
32 RUN: llvm-ar --format=gnu rcT %t.a 0123456789abcde 0123456789abcdef
33 RUN: cat %t.a | FileCheck -strict-whitespace --check-prefix=THIN %s
34 THIN: !<thin>
35 THIN-NEXT: //                                              36        `
36 THIN-NEXT: 0123456789abcde/
37 THIN-NEXT: 0123456789abcdef/{{$}}
38 THIN: {{^$}}
39 THIN: /0              0           0     0     644     4         `
40 THIN-NEXT: /17             0           0     0     644     4         `