blob: fd2fb903fe75741c9dda2813e9576ca0a44767b7 [file] [log] [blame] [edit]
! Testing the Semantics of tile
!RUN: %python %S/../test_errors.py %s %flang -fopenmp -fopenmp-version=51
subroutine on_unroll
implicit none
integer i
!ERROR: This construct requires a canonical loop nest
!$omp tile sizes(2)
!BECAUSE: Fully unrolled loop does not result in a loop nest
!$omp unroll
do i = 1, 5
print *, i
end do
end subroutine