1 ; All functions in the same comdat group must
2 ; be in the same module
4 ; RUN: llvm-split -j=2 -preserve-locals -o %t %s
5 ; RUN: llvm-dis -o - %t0 | FileCheck --check-prefix=CHECK1 %s
6 ; RUN: llvm-dis -o - %t1 | FileCheck --check-prefix=CHECK0 %s
8 ; CHECK0: declare dso_local i32 @fun1
9 ; CHECK0: declare dso_local i32 @fun2
10 ; CHECK0: declare i32 @fun3
12 ; CHECK1: define internal i32 @fun1
13 ; CHECK1: define internal i32 @fun2
14 ; CHECK1: define i32 @fun3
18 define internal i32 @fun1() section ".text.funs" comdat($fun) {
23 define internal i32 @fun2() section ".text.funs" comdat($fun) {
28 define i32 @fun3() section ".text.funs" comdat($fun) {