blob: 37272dbbcee2414e7f7606fd8989e999b7768fe2 [file] [log] [blame]
Peter Collingbourne1dc6a8d2015-08-21 02:48:20 +00001; RUN: llvm-split -o %t %s
2; RUN: llvm-dis -o - %t0 | FileCheck --check-prefix=CHECK0 %s
3; RUN: llvm-dis -o - %t1 | FileCheck --check-prefix=CHECK1 %s
4
5; CHECK0: define void @foo()
6; CHECK1: declare void @foo()
7define void @foo() {
8 call void @bar()
9 ret void
10}
11
12; CHECK0: declare void @bar()
13; CHECK1: define void @bar()
14define void @bar() {
15 call void @foo()
16 ret void
17}