URL
                    https://opencores.org/ocsvn/openrisc/openrisc/trunk
                
            Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [coarray/] [scalar_alloc_2.f90] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do run }!! Check whether registering allocatable coarrays works!type positionreal :: x, y, zend type positioninteger, allocatable :: a[:]type(position), allocatable :: p[:]allocate(a[*])a = 7allocate(p[*])p%x = 11p%y = 13p%z = 15if (a /= 7) call abort()a = 88if (a /= 88) call abort()if (p%x /= 11) call abort()p%x = 17if (p%x /= 17) call abort()blockinteger, allocatable :: b[:]allocate(b[*])b = 8494if (b /= 8494) call abort()end blockif (a /= 88) call abort()call test ()endsubroutine test()type velocityreal :: x, y, zend type velocityreal, allocatable :: z[:]type(velocity), allocatable :: v[:]allocate(z[*])z = sqrt(2.0)allocate(v[*])v%x = 21v%y = 23v%z = 25if (z /= sqrt(2.0)) call abort()if (v%x /= 21) call abort()end subroutine test

