2022-11-04 09:35:42 -07:00

16 lines
361 B
Fortran

! @@name: associate.2
! @@type: F-fixed
! @@operation: link
! @@expect: success
! @@version: omp_4.0
program example
use omp_lib
integer i
!$omp parallel private(i)
i = omp_get_thread_num()
associate(thread_id => i)
print *, thread_id ! print private i value
end associate
!$omp end parallel
end program