URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 302 |
Rev 384 |
! { dg-do compile }
|
! { dg-do compile }
|
! { dg-options "" }
|
! { dg-options "" }
|
! [option to disable -pedantic as assumed character length
|
! [option to disable -pedantic as assumed character length
|
! functions are obsolescent]
|
! functions are obsolescent]
|
!
|
!
|
! PR fortran/41235
|
! PR fortran/41235
|
!
|
!
|
|
|
character(len=*) function func()
|
character(len=*) function func()
|
func = 'ABC'
|
func = 'ABC'
|
end function func
|
end function func
|
|
|
subroutine test(i)
|
subroutine test(i)
|
integer :: i
|
integer :: i
|
character(len=i), external :: func
|
character(len=i), external :: func
|
print *, func()
|
print *, func()
|
end subroutine test
|
end subroutine test
|
|
|
subroutine test2(i)
|
subroutine test2(i)
|
integer :: i
|
integer :: i
|
character(len=i) :: func
|
character(len=i) :: func
|
print *, func()
|
print *, func()
|
end subroutine test2
|
end subroutine test2
|
|
|
call test(2)
|
call test(2)
|
call test2(2)
|
call test2(2)
|
end
|
end
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.