Files
clang-p2996/flang/test/Semantics/omp-taskloop-simd01.f90
Peixin Qiao 67002b5f20 [flang][OpenMP] Fix semantic check of test case in taskloop simd construct
The following semantic check is removed in OpenMP Version 5.0:
```
Taskloop simd construct restrictions: No reduction clause can be specified.
```

Also fix several typos.

Reviewed By: kiranchandramohan

Differential Revision: https://reviews.llvm.org/D105874
2021-07-14 10:34:17 -04:00

19 lines
326 B
Fortran

! RUN: %S/test_errors.sh %s %t %flang -fopenmp
! REQUIRES: shell
! OpenMP Version 5.0
! 2.10.3 taskloop simd Construct
program omp_taskloop_simd
integer i , j , k
!$omp taskloop simd reduction(+:k)
do i=1,10000
do j=1,i
k = k + 1
end do
end do
!$omp end taskloop simd
end program omp_taskloop_simd