1
0
mirror of https://github.com/OpenMP/Examples.git synced 2025-04-07 23:22:11 +01:00
2022-04-18 15:02:25 -07:00

19 lines
419 B
Fortran

! @@name: fort_sa_private.1
! @@type: F-fixed
! @@compilable: yes
! @@linkable: yes
! @@expect: rt-error
SUBROUTINE SUB()
COMMON /BLOCK/ X
PRINT *,X ! X is undefined
END SUBROUTINE SUB
PROGRAM PRIV_RESTRICT
COMMON /BLOCK/ X
X = 1.0
!$OMP PARALLEL PRIVATE (X)
X = 2.0
CALL SUB()
!$OMP END PARALLEL
END PROGRAM PRIV_RESTRICT