1 ; RUN: opt -S -mtriple=amdgcn-amd- -amdgpu-annotate-kernel-features %s | FileCheck %s
3 ; Test to verify if the attribute gets propagated across nested function calls
5 ; CHECK: define void @func1() #[[FUNC:[0-9]+]] {
6 define void @func1() #0 {
10 ; CHECK: define void @func2() #[[FUNC]] {
11 define void @func2() #1 {
16 ; CHECK: define amdgpu_kernel void @kernel3() #[[FUNC:[0-9]+]] {
17 define amdgpu_kernel void @kernel3() #2 {
22 attributes #2 = { "uniform-work-group-size"="true" }
24 ; CHECK: attributes #[[FUNC]] = { "uniform-work-group-size"="true" }