aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr108421.f90
blob: 89439bc7eecad51f98acb51d741f2c9258d8d3ca (plain)
1
2
3
4
5
6
7
8
9
10
11
! { dg-do compile }
! PR fortran/108421
! Contributed by G.Steinmetz

program p
  character(real(3)) :: c ! { dg-error "must be of INTEGER type" }
  call s(c)
end
subroutine s(x)
  character(*) :: x
end