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.dg/] [elemental_subroutine_7.f90] - Rev 302
Compare with Previous | Blame | View Log
! { dg-do run }!! PR fortran/38669! Loop bounds temporaries used before being defined for elemental subroutines!! Original testcase by Harald Anlauf <anlauf@gmx.de>program gfcbu84_mainimplicit noneinteger :: jplev, k_levinteger :: p(42)real :: r(42)integer, pointer :: q(:)jplev = 42k_lev = 1call random_number (r)p = 41 * r + 1allocate (q(jplev))q = 0call tq_tvgh (q(k_lev:), p(k_lev:))if (any (p /= q)) call abortq = 0call tq_tvgh (q(k_lev:), (p(k_lev:)))if (any (p /= q)) call abortq = 0call tq_tvgh (q(k_lev:), (p(p(k_lev:))))if (any (p(p) /= q)) call abortdeallocate (q)containselemental subroutine tq_tvgh (t, p)integer ,intent (out) :: tinteger ,intent (in) :: pt=pend subroutine tq_tvghend program gfcbu84_main
