summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.fortran-torture/execute/straret.f90
blob: 579e35a70a485084333c576899ecc5bf289c8d44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
! Test assumed length character functions.

character*(*) function f()
  f = "Hello"
end function

character*6 function g()
  g = "World"
end function

program straret
  character*6 f, g
  character*12 v
  

  v = f() //  g()
  if (v .ne. "Hello World ") call abort ()
end program