14 lines · plain
1! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp2! OpenMP Version 5.23! Minus operation is deprecated in reduction4 5subroutine reduction_subtract6 integer :: x7 !ERROR: The minus reduction operator is deprecated since OpenMP 5.2 and is not supported in the REDUCTION clause.8 !$omp do reduction(-:x)9 do i=1, 10010 x = x - i11 end do12 !$omp end do13end subroutine14