You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
424 B
23 lines
424 B
! RUN: %S/test_errors.sh %s %t %f18 -fopenmp
|
|
! XFAIL: *
|
|
|
|
! OpenMP Version 4.5
|
|
! 2.7.1 Loop Construct
|
|
! The do-loop cannot be a DO WHILE or a DO loop without loop control.
|
|
|
|
program omp_do
|
|
integer i, j, k
|
|
i = 0
|
|
|
|
!$omp do
|
|
!ERROR: !$OMP DO cannot be a DO WHILE or DO without loop control
|
|
do while (i .lt. 10)
|
|
do j = 1, 10
|
|
print *, "Hello"
|
|
end do
|
|
i = i + 1
|
|
end do
|
|
!$omp end do
|
|
|
|
end program omp_do
|