URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.fortran-torture/] [compile/] [nested.f90] - Rev 695
Compare with Previous | Blame | View Log
! Program to test the nested functionsprogram intrinsic_packinteger, parameter :: val(9) = (/0,0,0,0,9,0,0,0,7/)integer, dimension(3, 3) :: ainteger, dimension(6) :: ba = reshape (val, (/3, 3/))b = 0b(1:6:3) = pack (a, a .ne. 0);if (any (b(1:6:3) .ne. (/9, 7/))) call abortb = pack (a(2:3, 2:3), a(2:3, 2:3) .ne. 0, (/1, 2, 3, 4, 5, 6/));if (any (b .ne. (/9, 7, 3, 4, 5, 6/))) call abortcontainssubroutine tests_with_temp! A few tests which involve a temporaryif (any (pack(a, a.ne.0) .ne. (/9, 7/))) call abortif (any (pack(a, .true.) .ne. val)) call abortif (size(pack (a, .false.)) .ne. 0) call abortif (any (pack(a, .false., (/1,2,3/)).ne. (/1,2,3/))) call abortend subroutine tests_with_tempend program
