blob: 3393e07d31e6978a2d784a51387930344da500ad [file] [log] [blame]
! { dg-do compile }
! { dg-options "-Wconversion" }
! PR 86119 - this used to warn.
program proglen
implicit none
class(*), allocatable :: s
integer :: l2
allocate(s, source = '123 ')
select type(s)
type is (character(len=*))
l2 = len(s)
end select
end program proglen