blob: f41011df06ae7222f0703c38fbf6ce8326fcb6c0 [file] [log] [blame] [edit]
! RUN: bbc -emit-hlfir -fcuda %s -o - | FileCheck %s
attributes(global) subroutine sharedmem()
real, shared :: s(32)
integer :: t
t = threadIdx%x
s(t) = t
end subroutine
! CHECK-LABEL: func.func @_QPsharedmem() attributes {cuf.proc_attr = #cuf.cuda_proc<global>}
! CHECK: %{{.*}} = cuf.shared_memory !fir.array<32xf32> {bindc_name = "s", uniq_name = "_QFsharedmemEs"} -> !fir.ref<!fir.array<32xf32>>
! CHECK-NOT: cuf.free