| 1 |
subroutine foo (i, a) |
| 2 |
implicit none |
| 3 |
integer, value :: i |
| 4 |
integer :: a(:) |
| 5 |
integer :: j |
| 6 |
|
| 7 |
j = 7 |
| 8 |
!$omp assume no_openmp, absent (target, teams,target) holds (i < 32) holds (i < 32_2) ! { dg-error "'TARGET' directive mentioned multiple times in ABSENT clause in !.OMP ASSUME directive" } |
| 9 |
! !$omp end assume - silence: 'Unexpected !$OMP END ASSUME statement' |
| 10 |
|
| 11 |
!$omp assume no_openmp_routines, contains (simd) contains ( simd ) ! { dg-error "'SIMD' directive mentioned multiple times in CONTAINS clause in !.OMP ASSUME directive" } |
| 12 |
block |
| 13 |
!$omp simd |
| 14 |
do j = 1, i |
| 15 |
a(i) = j |
| 16 |
end do |
| 17 |
end block |
| 18 |
|
| 19 |
!$omp assume no_parallelism, contains (error) absent (error) ! { dg-error "'ERROR' directive mentioned both times in ABSENT and CONTAINS clauses in !.OMP ASSUME directive" } |
| 20 |
if (i >= 32) then |
| 21 |
!$omp error at (execution) message ("Should not happen") |
| 22 |
end if |
| 23 |
! !$omp end assume - silence: 'Unexpected !$OMP END ASSUME statement' |
| 24 |
|
| 25 |
!$omp assume holds (1.0) ! { dg-error "HOLDS expression at .1. must be a scalar logical expression" } |
| 26 |
!$omp end assume |
| 27 |
end |