PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git] / gcc / testsuite / gfortran.dg / func_result_2.f90
blob8d25e87caf8abe2959da7c5e1828d5b6e6c20f70
1 ! { dg-do run }
2 ! Character functions with a result clause were broken
3 program testch
4 if (ch().ne."hello ") STOP 1
5 contains
6 function ch () result(str)
7 character(len = 10) :: str
8 str ="hello"
9 end function ch
10 end program testch