1; All of the functions and globals in this module must end up 2; in the same partition. 3 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 7 8; CHECK0: declare dso_local ptr @local0 9; CHECK0: declare dso_local ptr @local1 10 11; CHECK1: @bla 12; CHECK1: @ptr 13; CHECK1: define internal ptr @local0 14; CHECK1: define internal ptr @local1 15 16%struct.anon = type { i64, i64 } 17 18@bla = internal global %struct.anon { i64 1, i64 2 }, align 8 19@ptr = internal global ptr @bla, align 4 20 21define internal ptr @local0() { 22 ret ptr @bla 23} 24 25define internal ptr @local1() { 26 ret ptr @ptr 27} 28 29