xref: /llvm-project/llvm/test/tools/llvm-dis/multiple-files.ll (revision 22aece57beb6eab43f4f88d565d5cec1934fe36e)
1; RUN: llvm-as -o %t0 %s
2; RUN: cp %t0 %t1
3; RUN: not llvm-dis -o %t2 %t0 %t1 2>&1 | FileCheck %s --check-prefix ERROR
4; RUN: llvm-dis %t0 %t1
5; RUN: FileCheck %s < %t0.ll
6; RUN: FileCheck %s < %t1.ll
7; ERROR: error: output file name cannot be set for multiple input files
8
9; CHECK: declare void @foo
10declare void @foo()
11