1RUN: llvm-bcanalyzer -dump %S/Inputs/has-block-info.bc | FileCheck -check-prefix=CHECK -check-prefix=DATA %s
2RUN: llvm-bcanalyzer -dump %S/Inputs/no-block-info.bc | FileCheck -check-prefix=UNKNOWN -check-prefix=DATA %s
3RUN: llvm-bcanalyzer -dump %S/Inputs/no-block-info.bc -block-info %S/Inputs/block-info-only.bc | FileCheck -check-prefix=CHECK -check-prefix=DATA %s
4
5  CHECK: <ABC
6UNKNOWN: <UnknownBlock8
7   DATA:   NumWords=4 BlockCodeSize=2>
8  CHECK:   <AAA
9UNKNOWN:   <UnknownCode0
10   DATA:     op0=42 op1=43 op2=44/>
11  CHECK:   <BBB
12UNKNOWN:   <UnknownCode1
13   DATA:     op0=42/>
14  CHECK:   <AAA
15UNKNOWN:   <UnknownCode0
16   DATA:     op0=42/>
17  CHECK: </ABC>
18UNKNOWN: </UnknownBlock8>
19  CHECK: <XYZ
20UNKNOWN: <UnknownBlock9
21   DATA:   NumWords=3 BlockCodeSize=3>
22  CHECK:   <XXX
23UNKNOWN:   <UnknownCode0
24   DATA:     abbrevid=4 op0=50 op1=4/>
25  CHECK:   <YYY
26UNKNOWN:   <UnknownCode1
27   DATA:     op0=42/>
28  CHECK:   <XXX
29UNKNOWN:   <UnknownCode0
30   DATA:     abbrevid=4 op0=50 op1=5/>
31  CHECK: </XYZ>
32UNKNOWN: </UnknownBlock9>
33