aboutsummaryrefslogtreecommitdiff
path: root/test/tools/llvm-split/function.ll
blob: 37272dbbcee2414e7f7606fd8989e999b7768fe2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
; RUN: llvm-split -o %t %s
; RUN: llvm-dis -o - %t0 | FileCheck --check-prefix=CHECK0 %s
; RUN: llvm-dis -o - %t1 | FileCheck --check-prefix=CHECK1 %s

; CHECK0: define void @foo()
; CHECK1: declare void @foo()
define void @foo() {
  call void @bar()
  ret void
}

; CHECK0: declare void @bar()
; CHECK1: define void @bar()
define void @bar() {
  call void @foo()
  ret void
}