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 }
|
! PR fortran/32460
|
! PR fortran/32460
|
!
|
!
|
module foomod
|
module foomod
|
implicit none
|
implicit none
|
type :: footype
|
type :: footype
|
private
|
private
|
integer :: dummy
|
integer :: dummy
|
end type footype
|
end type footype
|
TYPE :: bartype
|
TYPE :: bartype
|
integer :: dummy
|
integer :: dummy
|
integer, private :: dummy2
|
integer, private :: dummy2
|
end type bartype
|
end type bartype
|
end module foomod
|
end module foomod
|
|
|
program foo_test
|
program foo_test
|
USE foomod
|
USE foomod
|
implicit none
|
implicit none
|
TYPE(footype) :: foo
|
TYPE(footype) :: foo
|
TYPE(bartype) :: foo2
|
TYPE(bartype) :: foo2
|
foo = footype(1) ! { dg-error "is a PRIVATE component" }
|
foo = footype(1) ! { dg-error "is a PRIVATE component" }
|
foo2 = bartype(1,2) ! { dg-error "is a PRIVATE component" }
|
foo2 = bartype(1,2) ! { dg-error "is a PRIVATE component" }
|
foo2%dummy2 = 5 ! { dg-error "is a PRIVATE component" }
|
foo2%dummy2 = 5 ! { dg-error "is a PRIVATE component" }
|
end program foo_test
|
end program foo_test
|
! { dg-final { cleanup-modules "foomod" } }
|
! { dg-final { cleanup-modules "foomod" } }
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.