Add a passing test.
[oota-llvm.git] / test / tools / llvm-split / function.ll
1 ; 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()
7 define void @foo() {
8   call void @bar()
9   ret void
10 }
11
12 ; CHECK0: declare void @bar()
13 ; CHECK1: define void @bar()
14 define void @bar() {
15   call void @foo()
16   ret void
17 }