brintos

brintos / llvm-project-archived public Read only

0
0
Text · 688 B · 4bf6713 Raw
29 lines · plain
1; All of the functions and globals in this module must end up2; in the same partition.3 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 ptr @local09; CHECK0: declare dso_local ptr @local110 11; CHECK1: @bla12; CHECK1: @ptr13; CHECK1: define internal ptr @local014; CHECK1: define internal ptr @local115 16%struct.anon = type { i64, i64 }17 18@bla = internal global %struct.anon { i64 1, i64 2 }, align 819@ptr = internal global ptr @bla, align 420 21define internal ptr @local0() {22  ret ptr @bla23}24 25define internal ptr @local1() {26  ret ptr @ptr27}28 29