OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [parens_5.f90] - Rev 154

Compare with Previous | Blame | View Log

! { 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" } }

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.