Debian Codegraph @

gcc/testsuite/gfortran.dg/string_length_4.f90

raw
1 ! { dg-do compile }
2 ! { dg-require-effective-target lto }
3 ! { dg-options "-flto" }
4 ! PR 78867, test case adapted from gfortran.dg/string_length_1.f90
5 program pr78867
6 if (len(bar(2_8)) /= 2) STOP 1
7 contains
8
9 function bar(i)
10 integer(8), intent(in) :: i
11 character(len=i) :: bar
12
13 bar = ""
14 end function bar
15
16 end program pr78867