blob: fb81b3841fb6d0c61aaf8271c4a7f8229c751b2e [file] [log] [blame] [edit]
!RUN: %python %S/../test_errors.py %s %flang -fopenmp -fopenmp-version=61
subroutine f00
!ERROR: The argument to the dims-modifier should be positive
!$omp teams num_teams(dims(0): 1)
!$omp end teams
end
subroutine f01(x)
integer :: x
!ERROR: Must be a constant value
!$omp teams num_teams(dims(x): 1)
!$omp end teams
end
subroutine f02
!ERROR: The dims-modifier specifies 2 dimensions but 3 values were provided
!$omp teams num_teams(dims(2): 1, 2, 3)
!$omp end teams
end
subroutine f03
!ERROR: The parameter of the NUM_TEAMS clause must be a positive integer expression
!$omp teams num_teams(dims(2): -2, 3)
!$omp end teams
end