summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/gfortran.dg/parens_5.f90
blob: a6e64b4112a240d04f04c153ce46e6d3a4cdbe85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
! { dg-do run }
! 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

! { dg-final { cleanup-modules "para" } }
OpenPOWER on IntegriCloud