URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.fortran-torture/] [execute/] [equiv_2.f90] - Rev 695
Compare with Previous | Blame | View Log
subroutine test1character*8 ccharacter*1 d, fdimension d(2), f(2)character*4 eequivalence (c(1:1), d(1)), (c(3:5), e(2:4)), (c(6:6), f(2))c='abcdefgh'if (c.ne.'abcdefgh'.or.d(1).ne.'a'.or.d(2).ne.'b') call abortif (e.ne.'bcde'.or.f(1).ne.'e'.or.f(2).ne.'f') call abortend subroutine test1subroutine test2equivalence (c(1:1), d(1)), (c(3:5), e(2:4)), (c(6:6), f(2))character*8 ccharacter*1 d, fdimension d(2), f(2)character*4 ec='abcdefgh'if (c.ne.'abcdefgh'.or.d(1).ne.'a'.or.d(2).ne.'b') call abortif (e.ne.'bcde'.or.f(1).ne.'e'.or.f(2).ne.'f') call abortend subroutine test2subroutine test3character*8 ccharacter*1 d, fcharacter*4 eequivalence (c(1:1), d(1)), (c(3:5), e(2:4)), (c(6:6), f(2))dimension d(2), f(2)c='abcdefgh'if (c.ne.'abcdefgh'.or.d(1).ne.'a'.or.d(2).ne.'b') call abortif (e.ne.'bcde'.or.f(1).ne.'e'.or.f(2).ne.'f') call abortend subroutine test3subroutine test4dimension d(2), f(2)equivalence (c(1:1), d(1)), (c(3:5), e(2:4)), (c(6:6), f(2))character*8 ccharacter*1 d, fcharacter*4 ec='abcdefgh'if (c.ne.'abcdefgh'.or.d(1).ne.'a'.or.d(2).ne.'b') call abortif (e.ne.'bcde'.or.f(1).ne.'e'.or.f(2).ne.'f') call abortend subroutine test4program maincall test1call test2call test3call test4end program main
