1; RUN: llvm-cat -o %t %s %S/Inputs/multi-module.ll
2
3; RUN: llvm-bcanalyzer -dump %t | FileCheck --check-prefix=BCA %s
4
5; RUN: llvm-modextract -n 0 -o - %t | llvm-dis | FileCheck --check-prefix=IR1 %s
6; RUN: llvm-modextract -n 1 -o - %t | llvm-dis | FileCheck --check-prefix=IR2 %s
7
8; RUN: llvm-as -o %t1 %s
9; RUN: llvm-as -o %t2 %S/Inputs/multi-module.ll
10; RUN: llvm-cat -o %t %t1 %t2
11; RUN: llvm-bcanalyzer -dump %t | FileCheck --check-prefix=BCA %s
12
13; RUN: llvm-cat -b -o %t %t1 %t2
14; RUN: llvm-bcanalyzer -dump %t | FileCheck --check-prefix=BCA %s
15
16; RUN: llvm-modextract -n 0 -o - %t | llvm-dis | FileCheck --check-prefix=IR1 %s
17; RUN: llvm-modextract -n 1 -o - %t | llvm-dis | FileCheck --check-prefix=IR2 %s
18
19; RUN: llvm-cat -b -o %t3 %t %t
20; RUN: llvm-bcanalyzer -dump %t3 | FileCheck --check-prefix=BCA4 %s
21
22; RUN: llvm-modextract -n 0 -o - %t3 | llvm-dis | FileCheck --check-prefix=IR1 %s
23; RUN: llvm-modextract -n 1 -o - %t3 | llvm-dis | FileCheck --check-prefix=IR2 %s
24; RUN: llvm-modextract -n 2 -o - %t3 | llvm-dis | FileCheck --check-prefix=IR1 %s
25; RUN: llvm-modextract -n 3 -o - %t3 | llvm-dis | FileCheck --check-prefix=IR2 %s
26
27; BCA: <IDENTIFICATION_BLOCK
28; BCA: <MODULE_BLOCK
29; BCA: <IDENTIFICATION_BLOCK
30; BCA: <MODULE_BLOCK
31
32; BCA4: <IDENTIFICATION_BLOCK
33; BCA4: <MODULE_BLOCK
34; BCA4: <IDENTIFICATION_BLOCK
35; BCA4: <MODULE_BLOCK
36; BCA4: <IDENTIFICATION_BLOCK
37; BCA4: <MODULE_BLOCK
38; BCA4: <IDENTIFICATION_BLOCK
39; BCA4: <MODULE_BLOCK
40
41; IR1: define void @f1()
42; IR2: define void @f2()
43
44define void @f1() {
45  ret void
46}
47