[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gfortran.dg / string_length_4.f90
blob759066b078ab8d74920cc042ad3af7812b72c61b
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) call abort
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