mirror of
https://github.com/OpenMP/Examples.git
synced 2025-04-10 08:22:11 +01:00
18 lines
417 B
Fortran
18 lines
417 B
Fortran
! @@name: nesting_restrict.5
|
|
! @@type: F-fixed
|
|
! @@operation: compile
|
|
! @@expect: ct-error
|
|
! @@version: pre_omp_3.0
|
|
SUBROUTINE WRONG5(N)
|
|
INTEGER N
|
|
|
|
!$OMP PARALLEL DEFAULT(SHARED)
|
|
!$OMP CRITICAL
|
|
CALL WORK(N,1)
|
|
! incorrect nesting of barrier region in a critical region
|
|
!$OMP BARRIER
|
|
CALL WORK(N,2)
|
|
!$OMP END CRITICAL
|
|
!$OMP END PARALLEL
|
|
END SUBROUTINE WRONG5
|