aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr106986.f90
blob: a309b25d181ca06d331af1dd37c011114841ef85 (plain)
1
2
3
4
5
6
7
8
! { dg-do compile }
! PR fortran/106986 - ICE in simplify_findloc_nodim
! Contributed by G.Steinmetz

program p
  integer, parameter :: a(:) = [1] ! { dg-error "deferred shape" }
  print *, findloc (a, 1)
end