URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.fortran-torture/] [execute/] [intrinsic_size.f90] - Rev 801
Go to most recent revision | Compare with Previous | Blame | View Log
! Program to test the SIZE intrinsicsprogram testsizeimplicit nonereal, dimension(:, :), allocatable :: ainteger, dimension(5) :: jinteger, dimension(2, 3) :: binteger iif (size (b(2, :), 1) .ne. 3) call abortallocate (a(3:8, 5:7))! With one parameterif (size(a) .ne. 18) call abort! With two parameters, assigning to an arrayj = size(a, 1)if (any (j .ne. (/6, 6, 6, 6, 6/))) call abort! With a variable second parameteri = 2i = size(a, i)if (i .ne. 3) call abortcall test(a)containssubroutine test (a)real, dimension (1:, 1:) :: ainteger ii = 2if ((size(a, 1) .ne. 6) .or. (size(a, i) .ne. 3)) call abortif (size (a) .ne. 18 ) call abortend subroutineend program
Go to most recent revision | Compare with Previous | Blame | View Log
