OpenMP-Examples/sources/Example_fort_sp_common.4f.f
2015-01-13 11:38:24 -08:00

13 lines
330 B
Fortran

! @@name: fort_sp_common.4f
! @@type: F-fixed
! @@compilable: no
! @@linkable: no
! @@expect: failure
SUBROUTINE COMMON_WRONG()
COMMON /C/ X,Y
! Incorrect because X is a constituent element of C
!$OMP PARALLEL PRIVATE(/C/), SHARED(X)
! do work here
!$OMP END PARALLEL
END SUBROUTINE COMMON_WRONG