aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/func_result_2.f90
blob: 6b91653ed9da878c317fa6158573076f72e50944 (plain)
1
2
3
4
5
6
7
8
9
10
! { dg-do run }
! Character functions with a result clause were broken
program testch
  if (ch().ne."hello     ") call abort()
contains
  function ch () result(str)
    character(len = 10)  :: str
    str ="hello"
  end function ch
end program testch