mirror of
https://github.com/OpenMP/Examples.git
synced 2025-04-07 23:22:11 +01:00
52 lines
1.0 KiB
Fortran
52 lines
1.0 KiB
Fortran
! @@name: standalone.1f
|
|
! @@type: F-free
|
|
! @@compilable: no
|
|
! @@linkable: no
|
|
! @@expect: failure
|
|
|
|
|
|
SUBROUTINE STANDALONE_WRONG()
|
|
|
|
INTEGER A
|
|
|
|
A = 1
|
|
|
|
! the FLUSH directive must not be the action statement
|
|
! in an IF statement
|
|
IF (A .NE. 0) !$OMP FLUSH(A)
|
|
|
|
! the BARRIER directive must not be the action statement
|
|
! in an IF statement
|
|
IF (A .NE. 0) !$OMP BARRIER
|
|
|
|
! the TASKWAIT directive must not be the action statement
|
|
! in an IF statement
|
|
IF (A .NE. 0) !$OMP TASKWAIT
|
|
|
|
! the TASKYIELD directive must not be the action statement
|
|
! in an IF statement
|
|
IF (A .NE. 0) !$OMP TASKYIELD
|
|
|
|
GOTO 100
|
|
|
|
! the FLUSH directive must not be a labeled branch target
|
|
! statement
|
|
100 !$OMP FLUSH(A)
|
|
GOTO 200
|
|
|
|
! the BARRIER directive must not be a labeled branch target
|
|
! statement
|
|
200 !$OMP BARRIER
|
|
GOTO 300
|
|
|
|
! the TASKWAIT directive must not be a labeled branch target
|
|
! statement
|
|
300 !$OMP TASKWAIT
|
|
GOTO 400
|
|
|
|
! the TASKYIELD directive must not be a labeled branch target
|
|
! statement
|
|
400 !$OMP TASKYIELD
|
|
|
|
END SUBROUTINE
|