RISC-V: Refactor Dynamic LMUL codes
[official-gcc.git] / gcc / testsuite / gfortran.dg / string_length_4.f90
blob8586c0cc2e06c5b98b06ac4fb590a31db291b2ce
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
9 function bar(i)
10 integer(8), intent(in) :: i
11 character(len=i) :: bar
13 bar = ""
14 end function bar
16 end program pr78867