1 ; RUN: llvm-split -o %t %s -j 3 -mtriple amdgcn-amd-amdhsa
2 ; RUN: llvm-dis -o - %t0 | FileCheck --check-prefix=CHECK0 --implicit-check-not=DEFINE %s
3 ; RUN: llvm-dis -o - %t1 | FileCheck --check-prefix=CHECK1 --implicit-check-not=DEFINE %s
4 ; RUN: llvm-dis -o - %t2 | FileCheck --check-prefix=CHECK2 --implicit-check-not=DEFINE %s
6 ; 3 functions with each their own dependencies should go into 3
9 ; CHECK0: define void @C
10 ; CHECK0: define internal void @HelperC
12 ; CHECK1: define void @B
13 ; CHECK1: define internal void @HelperB
15 ; CHECK2: define void @A
16 ; CHECK2: define internal void @HelperA
24 define internal void @HelperA() {
33 define internal void @HelperB() {
42 define internal void @HelperC() {