OpenMP-Examples/program_control/sources/nesting_restrict.6.f
2022-11-04 09:35:42 -07:00

18 lines
411 B
Fortran

! @@name: nesting_restrict.6
! @@type: F-fixed
! @@operation: compile
! @@expect: ct-error
! @@version: pre_omp_3.0
SUBROUTINE WRONG6(N)
INTEGER N
!$OMP PARALLEL DEFAULT(SHARED)
!$OMP SINGLE
CALL WORK(N,1)
! incorrect nesting of barrier region in a single region
!$OMP BARRIER
CALL WORK(N,2)
!$OMP END SINGLE
!$OMP END PARALLEL
END SUBROUTINE WRONG6