bolt/deps/llvm-18.1.8/openmp/libomptarget/test/Inputs/basic_array.f90

8 lines
263 B
Fortran
Raw Normal View History

2025-02-14 19:21:04 +01:00
subroutine increment_at(c_index, arr) bind(C, name="increment_at")
use ISO_C_BINDING
!$omp declare target
integer (C_INT), dimension(*), intent(inout) :: arr
integer (C_INT), value :: c_index
arr(c_index+1) = arr(c_index+1) + 1
end subroutine