blob: 5b1ca85aba3af5c4663eab02d2b1fa11e29aba78 [file] [log] [blame]
! { dg-do compile }
! PR fortran/101330 - ICE in free_expr0(): Bad expr type
! Contributed by G.Steinmetz
implicit none
integer :: j, b(10)
!$omp task affinity (iterator(j=1:2:1) : b(j))
!$omp end task
!$omp task affinity (iterator(j=1:2:) : b(j)) ! { dg-error "Invalid character" }
!!$omp end task
!$omp task affinity (iterator(j=1:2: ! { dg-error "Invalid character" }
!!$omp end task
!$omp task affinity (iterator(j=1:2:) ! { dg-error "Invalid character" }
!!$omp end task
!$omp task affinity (iterator(j=1:2::) ! { dg-error "Invalid character" }
!!$omp end task
!$omp task affinity (iterator(j=1:2:)) ! { dg-error "Invalid character" }
!!$omp end task
end