brintos

brintos / llvm-project-archived public Read only

0
0
Text · 763 B · 2b503ef Raw
39 lines · plain
1! Testing the Semantics of tile2!RUN: %python %S/../test_errors.py %s %flang -fopenmp -fopenmp-version=513 4 5subroutine threads_zero6  implicit none7  integer i8 9  !ERROR: The parameter of the NUM_THREADS clause must be a positive integer expression10  !$omp parallel do num_threads(-1)11  do i = 1, 512    print *, i13  end do14end subroutine15 16 17subroutine sizes_zero18  implicit none19  integer i20 21  !ERROR: The parameter of the SIZES clause must be a positive integer expression22  !$omp tile sizes(0)23  do i = 1, 524    print *, i25  end do26end subroutine27 28 29subroutine sizes_negative30  implicit none31  integer i32 33  !ERROR: The parameter of the SIZES clause must be a positive integer expression34  !$omp tile sizes(-1)35  do i = 1, 536    print *, i37  end do38end subroutine39