URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.fortran-torture/] [execute/] [strarray_4.f90] - Rev 378
Go to most recent revision | Compare with Previous | Blame | View Log
program strarray_4character(len=5), dimension(2) :: cc(1) = "Hello"c(2) = "World"call foo1(c)call foo2(c, 2)call foo3(c, 5, 2)containssubroutine foo1(a)implicit nonecharacter(len=5), dimension(2) :: acharacter(len=5), dimension(2) :: bb = a;if ((b(1) .ne. "Hello") .or. (b(2) .ne. "World")) call abortend subroutinesubroutine foo2(a, m)implicit noneinteger mcharacter(len=5), dimension(m) :: acharacter(len=5), dimension(m) :: bb = aif ((b(1) .ne. "Hello") .or. (b(2) .ne. "World")) call abortend subroutinesubroutine foo3(a, n, m)implicit noneinteger n, mcharacter(len=n), dimension(m) :: acharacter(len=n), dimension(m) :: bb = aif ((b(1) .ne. "Hello") .or. (b(2) .ne. "World")) call abortend subroutineend program
Go to most recent revision | Compare with Previous | Blame | View Log
