URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 302 |
Rev 384 |
! { dg-do compile }
|
! { dg-do compile }
|
! PR fortran/33646
|
! PR fortran/33646
|
!
|
!
|
!
|
!
|
|
|
module BAR_MODULE
|
module BAR_MODULE
|
implicit none
|
implicit none
|
private
|
private
|
public create_
|
public create_
|
interface create_
|
interface create_
|
module procedure create
|
module procedure create
|
end interface
|
end interface
|
type system_type
|
type system_type
|
integer(kind=kind(1)) :: max_memory_used
|
integer(kind=kind(1)) :: max_memory_used
|
end type
|
end type
|
|
|
contains
|
contains
|
|
|
subroutine create(self)
|
subroutine create(self)
|
type(system_type) :: self
|
type(system_type) :: self
|
pointer :: self
|
pointer :: self
|
allocate(self)
|
allocate(self)
|
end subroutine
|
end subroutine
|
|
|
end
|
end
|
|
|
module FOO_MODULE
|
module FOO_MODULE
|
use BAR_MODULE
|
use BAR_MODULE
|
implicit none
|
implicit none
|
private
|
private
|
public create_
|
public create_
|
interface create_
|
interface create_
|
module procedure create
|
module procedure create
|
end interface
|
end interface
|
|
|
public create_copy_
|
public create_copy_
|
interface create_copy_
|
interface create_copy_
|
module procedure create_copy
|
module procedure create_copy
|
end interface
|
end interface
|
contains
|
contains
|
|
|
subroutine create(self)
|
subroutine create(self)
|
character(*) :: self
|
character(*) :: self
|
pointer :: self
|
pointer :: self
|
nullify(self)
|
nullify(self)
|
allocate(self)
|
allocate(self)
|
|
|
self = " "
|
self = " "
|
end subroutine
|
end subroutine
|
|
|
subroutine create_copy(self,s)
|
subroutine create_copy(self,s)
|
character(*) :: self
|
character(*) :: self
|
pointer :: self
|
pointer :: self
|
character(*) :: s
|
character(*) :: s
|
call create_(self)
|
call create_(self)
|
end subroutine
|
end subroutine
|
end
|
end
|
|
|
! { dg-final { cleanup-modules "BAR_MODULE FOO_MODULE" } }
|
! { dg-final { cleanup-modules "BAR_MODULE FOO_MODULE" } }
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.