33 lines · plain
1; All functions in the same comdat group must2; be in the same module3 4; RUN: llvm-split -j=2 -preserve-locals -o %t %s5; RUN: llvm-dis -o - %t0 | FileCheck --check-prefix=CHECK1 %s6; RUN: llvm-dis -o - %t1 | FileCheck --check-prefix=CHECK0 %s7 8; CHECK0: declare dso_local i32 @fun19; CHECK0: declare dso_local i32 @fun210; CHECK0: declare i32 @fun311 12; CHECK1: define internal i32 @fun113; CHECK1: define internal i32 @fun214; CHECK1: define i32 @fun315 16$fun = comdat any17 18define internal i32 @fun1() section ".text.funs" comdat($fun) {19entry:20 ret i32 021}22 23define internal i32 @fun2() section ".text.funs" comdat($fun) {24entry:25 ret i32 026}27 28define i32 @fun3() section ".text.funs" comdat($fun) {29entry:30 ret i32 031}32 33