URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.fortran-torture/] [execute/] [strarray_3.f90] - Rev 695
Compare with Previous | Blame | View Log
program strarray_3character(len=5), dimension(2) :: cc(1) = "Hello"c(2) = "World"call foo1(c)call foo2(c, 2)call foo3(c, 5)call foo4(c, 5, 2)call foo5(c(2:1:-1))containssubroutine foo1(a)implicit nonecharacter(len=5), dimension(2) :: aif ((a(1) .ne. "Hello") .or. (a(2) .ne. "World")) call abortend subroutinesubroutine foo2(a, m)implicit noneinteger mcharacter(len=5), dimension(m) :: aif ((a(1) .ne. "Hello") .or. (a(2) .ne. "World")) call abortend subroutinesubroutine foo3(a, n)implicit noneinteger ncharacter(len=n), dimension(:) :: aif ((a(1) .ne. "Hello") .or. (a(2) .ne. "World")) call abortend subroutinesubroutine foo4(a, n, m)implicit noneinteger n, mcharacter(len=n), dimension(m) :: aif ((a(1) .ne. "Hello") .or. (a(2) .ne. "World")) call abortend subroutinesubroutine foo5(a)implicit nonecharacter(len=2), dimension(5) :: aif ((a(1) .ne. "Wo") .or. (a(3) .ne. "dH") .or. (a(5) .ne. "lo")) call abortend subroutineend program
