Files
llvm-project/flang/test/Semantics/OpenMP/taskloop04.f90
Jack Styles 7838dbee3a [Flang][OpenMP] Add Lowering support for Collapse with Taskloop (#166791)
Support for lowering collapse already exists within
`genLoopNestClauses`, which is called when lowering taskloop. However,
the TODO message still included the Collapse clause, so it was not
activated. By removing this, it enables lowering of the Collapse clause
in taskloop.
2025-11-12 13:15:34 +00:00

16 lines
538 B
Fortran

! When lowering Taskloop, it is possible for the TileSizes clause to be lowered, but this is not a supported clause.
! We should make sure that any use of Tilesizes with Taskloop is correctly rejected by the Semantics.
! RUN: %python %S/../test_errors.py %s %flang -fopenmp
subroutine test
integer :: i, sum
!ERROR: TILE cannot follow TASKLOOP
!ERROR: SIZES clause is not allowed on the TASKLOOP directive
!$omp taskloop tile sizes(2)
do i=1,10
sum = sum + i
end do
!$omp end taskloop
end subroutine