bolt/deps/llvm-18.1.8/flang/test/Semantics/OpenMP/no-dowhile-in-parallel.f90

29 lines
519 B
Fortran
Raw Normal View History

2025-02-14 19:21:04 +01:00
! RUN: %python %S/../test_errors.py %s %flang -fopenmp
subroutine bug48308(x,i)
real :: x(:)
integer :: i
!$omp parallel firstprivate(i)
do while (i>0)
x(i) = i
i = i - 1
end do
!$omp end parallel
end subroutine
subroutine s1(x,i)
real :: x(:)
integer :: i
!$omp parallel firstprivate(i)
do i = 10, 1, -1
x(i) = i
end do
!$omp end parallel
!$omp parallel firstprivate(i)
do concurrent (i = 1:10:1)
x(i) = i
end do
!$omp end parallel
end subroutine