aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/minmaxloc_15.f90
blob: e4eba3501d5889ef6fb542db1035d61c45517ce0 (plain)
1
2
3
4
5
6
7
8
9
10
11
! { dg-do compile }
! PR fortran/103473 - ICE in simplify_minmaxloc_nodim
! Test case by Gerhard Steinmetz.

subroutine s
  implicit none
  integer, parameter :: a(+'1') = [1] ! { dg-error "unary numeric operator" }
  print *, minloc (a)
end

! { dg-prune-output "Parameter array" }