forked from OSchip/llvm-project
23 lines
424 B
Fortran
23 lines
424 B
Fortran
! 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
|