aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/minmaxloc_integer_kinds_1.f90
blob: cbf84ec41bd634fbe3b2368e3119730d6191c296 (plain)
1
2
3
4
5
6
7
8
9
10
! { dg-do link }
! PR 30415 - minloc and maxloc for integer kinds=1 and 2 were missing
! Test case by Harald Anlauf
program gfcbug55
  integer(kind=1) :: i1(4) = 1
  integer(kind=2) :: i2(4) = 1
  print *, minloc(i1), maxloc(i1)
  print *, minloc(i2), maxloc(i2)
end program gfcbug55