URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 302 |
Rev 384 |
! { dg-do compile }
|
! { dg-do compile }
|
! { dg-options -std=f95 }
|
! { dg-options -std=f95 }
|
!
|
!
|
! Code was posted to comp.lang.fortran by Richard Maine.
|
! Code was posted to comp.lang.fortran by Richard Maine.
|
! http://groups.google.com/group/comp.lang.fortran/browse_frm/thread/fff9b3426211c018#
|
! http://groups.google.com/group/comp.lang.fortran/browse_frm/thread/fff9b3426211c018#
|
!
|
!
|
module m
|
module m
|
type :: foo
|
type :: foo
|
real, pointer :: array(:)
|
real, pointer :: array(:)
|
procedure (), pointer, nopass :: f ! { dg-error "Procedure pointer component" }
|
procedure (), pointer, nopass :: f ! { dg-error "Procedure pointer component" }
|
end type
|
end type
|
contains
|
contains
|
elemental subroutine fooAssgn (a1, a2)
|
elemental subroutine fooAssgn (a1, a2)
|
type(foo), intent(out) :: a1
|
type(foo), intent(out) :: a1
|
type(foo), intent(in) :: a2
|
type(foo), intent(in) :: a2
|
allocate (a1%array(size(a2%array)))
|
allocate (a1%array(size(a2%array)))
|
|
|
a1%array = a2%array
|
a1%array = a2%array
|
a1%f => a2%f ! { dg-error "not a member of the" }
|
a1%f => a2%f ! { dg-error "not a member of the" }
|
end subroutine
|
end subroutine
|
end module m
|
end module m
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.