blob: 370e3fd5847c8729054f058ea12c99f6a1b73e38 [file] [log] [blame]
! { 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