aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/entry_dummy_ref_3.f90
blob: 379f6fba38e65e24aac94cf821d1ae18c5ef1a57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
! { dg-do compile }
!
! PR fortran/33818
!

subroutine ExportZMX(lu)
  implicit none
  integer :: lu
  interface
    function LowerCase(str)
      character(*),intent(in) :: str
      character(len(str))     :: LowerCase
    end function LowerCase
  end interface
  character(*),parameter :: UNAME(1:1)=(/'XXX'/)
  write(lu,'(a)') 'UNIT '//UpperCase(UNAME(1))
  write(lu,'(a)') 'Unit '//LowerCase(UNAME(1))
entry ExportSEQ(lu)
contains
  function UpperCase(str) result(res)
    character(*),intent(in) :: str
    character(len(str)) res
    res=str
  end function
end