aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/coarray_49.f90
blob: 370e3fd5847c8729054f058ea12c99f6a1b73e38 (plain)
1
2
3
4
5
6
7
8
9
! { dg-do compile }
! { dg-options "-fcoarray=lib" }
! PR fortran/101565 - ICE in gfc_simplify_image_index
! Contributed by G. Steinmetz

program p
  integer :: x[*]
  print *, image_index (x, [1.0]) ! { dg-error "shall be INTEGER" }
end