blob: 5eb47004cb133381cf42e0d8b7fc4c87a8bf3896 [file] [edit]
! Test that lastprivate(conditional:) on a composite do simd construct
! produces a TODO diagnostic.
! RUN: not bbc -fopenmp -fopenmp-version=50 -emit-hlfir %s -o - 2>&1 | FileCheck %s
! RUN: not %flang_fc1 -fopenmp -fopenmp-version=50 -emit-hlfir %s -o - 2>&1 | FileCheck %s
! CHECK: not yet implemented: lastprivate(conditional:) on do simd composite construct
subroutine do_simd_conditional(a, n)
integer :: a(:), n, x, i
x = 0
!$omp do simd lastprivate(conditional: x)
do i = 1, n
if (a(i) > 0) x = a(i)
end do
!$omp end do simd
a(1) = x
end subroutine