Debian Codegraph @

gcc/testsuite/gfortran.dg/warn_conversion_11.f90

raw
1 ! { dg-do compile }
2 ! { dg-options "-Wconversion" }
3 ! PR 86119 - this used to warn.
4 program proglen
5
6 implicit none
7
8 class(*), allocatable :: s
9 integer :: l2
10
11 allocate(s, source = '123 ')
12
13 select type(s)
14 type is (character(len=*))
15 l2 = len(s)
16 end select
17
18 end program proglen