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