1 ; All of the functions in this module must end up
2 ; in the same partition.
4 ; Mutually recursive calls
5 ; RUN: llvm-split -j=2 -preserve-locals -o %t %s
6 ; RUN: llvm-dis -o - %t0 | FileCheck --check-prefix=CHECK1 %s
7 ; RUN: llvm-dis -o - %t1 | FileCheck --check-prefix=CHECK0 %s
9 ; CHECK0: declare dso_local i32 @funInternal0
10 ; CHECK0: declare dso_local i32 @funInternal1
11 ; CHECK0: declare i32 @funExternal0
12 ; CHECK0: declare i32 @funExternal1
14 ; CHECK1: define internal i32 @funInternal0
15 ; CHECK1: define internal i32 @funInternal1
16 ; CHECK1: define i32 @funExternal0
17 ; CHECK1: define i32 @funExternal1
19 define internal i32 @funInternal0() {
21 %x = call i32 @funInternal1()
25 define internal i32 @funInternal1() {
27 %x = call i32 @funInternal0()
33 define i32 @funExternal0() {
35 %x = call i32 @funInternal0()
39 define i32 @funExternal1() {
41 %x = call i32 @funInternal1()