mirror of
https://github.com/OpenMP/Examples.git
synced 2025-04-07 23:22:11 +01:00
18 lines
399 B
Fortran
18 lines
399 B
Fortran
! @@name: nesting_restrict.6f
|
|
! @@type: F-fixed
|
|
! @@compilable: no
|
|
! @@linkable: no
|
|
! @@expect: failure
|
|
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
|