blob: bf1f03a87863075c52e58528353c8a0376fab012 [file] [edit]
! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp
subroutine dont_crash(values)
implicit none
integer, parameter :: n = 100
real :: values(n)
integer :: i
!ERROR: No explicit type declared for 'sum'
sum = 0
!ERROR: No explicit type declared for 'sum'
!$omp parallel do reduction(+:sum)
do i = 1, n
!ERROR: No explicit type declared for 'sum'
!ERROR: No explicit type declared for 'sum'
sum = sum + values(i)
end do
end subroutine dont_crash