URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [coarray_lock_5.f90] - Rev 774
Go to most recent revision | Compare with Previous | Blame | View Log
! { dg-do compile }! { dg-options "-fcoarray=single" }!! LOCK_TYPE checks!module m3use iso_fortran_envtype, extends(lock_type) :: lockinteger :: j = 7end type lockend module m3use m3type(lock_type) :: tl[*] = lock_type ()type(lock) :: t[*]tl = lock_type () ! { dg-error "variable definition context" }print *,t%jendsubroutine test()use iso_fortran_envtype ttype(lock_type) :: lockend type ttype t2type(t), pointer :: x ! { dg-error "Pointer component x at .1. has a noncoarray subcomponent of type LOCK_TYPE, which must have a codimension or be a subcomponent of a coarray" }end type t2end subroutine testsubroutine test2()use iso_fortran_envimplicit nonetype ttype(lock_type), allocatable :: lock ! { dg-error "Allocatable component lock at .1. of type LOCK_TYPE must have a codimension" }end type ttype t2type(lock_type) :: lockend type t2type t3type(t2), allocatable :: lock_cmpend type t3type t4integer, allocatable :: a[:]type(t2) :: b ! { dg-error "Noncoarray component b at .1. of type LOCK_TYPE or with subcomponent of type LOCK_TYPE must have a codimension or be a subcomponent of a coarray. .Variables of type t4 may not have a codimension as already a coarray subcomponent exists." }end type t4type t5type(t2) :: c ! { dg-error "Noncoarray component c at .1. of type LOCK_TYPE or with subcomponent of type LOCK_TYPE must have a codimension or be a subcomponent of a coarray. .Variables of type t5 may not have a codimension as d at .2. has a codimension or a coarray subcomponent." }integer, allocatable :: d[:] ! { dg-error "Noncoarray component c at .1. of type LOCK_TYPE or with subcomponent of type LOCK_TYPE must have a codimension or be a subcomponent of a coarray. .Variables of type t5 may not have a codimension as d at .2. has a codimension or a coarray subcomponent." }end type t5end subroutine test2! { dg-final { cleanup-modules "m3" } }
Go to most recent revision | Compare with Previous | Blame | View Log
