36 lines · plain
1! Testing the Semantics of tile2!RUN: %python %S/../test_errors.py %s %flang -fopenmp -fopenmp-version=513 4 5subroutine non_perfectly_nested_loop_behind6 implicit none7 integer i, j8 9 !ERROR: Canonical loop nest must be perfectly nested.10 !$omp tile sizes(2,2)11 do i = 1, 512 do j = 1, 4213 print *, j14 end do15 print *, i16 end do17end subroutine18 19 20subroutine non_perfectly_nested_loop_before21 implicit none22 integer i, j23 24 !ERROR: The SIZES clause has more entries than there are nested canonical loops.25 !$omp tile sizes(2,2)26 do i = 1, 527 print *, i28 do j = 1, 4229 print *, j30 end do31 end do32end subroutine33 34 35 36