view gcc/testsuite/gfortran.dg/parens_5.f90 @ 118:fd00160c1b76

ifdef TARGET_64BIT
author mir3636
date Tue, 27 Feb 2018 15:01:35 +0900
parents 04ced10e8804
children 84e7813d76e9
line wrap: on
line source

! { dg-do run }
! { dg-options "-std=legacy" }
!
! Another case of fallout from the original patch for PR14771
! Testcase by Erik Zeek
module para
contains
   function bobo(n)
       integer, intent(in) :: n
       character(len=(n)) :: bobo ! Used to fail here
       bobo = "1234567890"
   end function bobo
end module para

program test
   use para
   implicit none
   character*5 c
   c = bobo(5)
   if (c .ne. "12345") call abort
end program test