• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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: declare hidden void @__llvmsplit_unnamed()
6; CHECK1: define hidden void @__llvmsplit_unnamed()
7define internal void @0() {
8  ; CHECK1: call void @foo()
9  call void @foo()
10  ret void
11}
12
13; CHECK0: declare hidden void @__llvmsplit_unnamed.1()
14; CHECK1: define hidden void @__llvmsplit_unnamed.1()
15define internal void @1() {
16  ; CHECK1: call void @foo()
17  ; CHECK1: call void @foo()
18  call void @foo()
19  call void @foo()
20  ret void
21}
22
23; CHECK0: define void @foo()
24; CHECK1: declare void @foo()
25define void @foo() {
26  ; CHECK0: call void @__llvmsplit_unnamed.1()
27  ; CHECK0: call void @__llvmsplit_unnamed()
28  call void @1()
29  call void @0()
30  ret void
31}
32