llvm-project/flang/test/Lower/OpenMP/invalid-reduction-modifier.f90
Krzysztof Parzyszek 2aa218c247
[flang][OpenMP] Diagnose invalid reduction modifiers (#92406)
Emit diagnostic messages for invalid modifiers in "reduction" clause.

Fixes https://github.com/llvm/llvm-project/issues/92397
2024-05-22 07:23:14 -05:00

14 lines
274 B
Fortran

!RUN: not %flang_fc1 -fopenmp -emit-hlfir -o - %s
! Check that we reject the "task" reduction modifier on the "simd" directive.
subroutine fred(x)
integer, intent(inout) :: x
!$omp simd reduction(task, +:x)
do i = 1, 100
x = foo(i)
enddo
!$omp end simd
end