OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [dummy_optional_arg.f90] - Rev 694

Compare with Previous | Blame | View Log

! { dg-do compile }
! PR fortran/45495
!
! Code originally submitted by Philip Mason <pmason at ricardo dot com>
!
function jack(aa)
   character(len=*), intent(in) :: aa
   optional :: aa
   character(len=len(aa)+1) :: jack ! { dg-error "cannot be OPTIONAL" }
   jack = ''
end function jack

function diane(aa)
   character(len=*), intent(out) :: aa
   character(len=len(aa)+1) :: diane
   diane = '012345678901'
   aa = 'abcdefghijklmn'
end function diane

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.