URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [bounds_check_9.f90] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do run }! { dg-options "-fbounds-check" }! PR fortran/31119!module sub_modcontainselemental subroutine set_optional(i,idef,iopt)integer, intent(out) :: iinteger, intent(in) :: idefinteger, intent(in), optional :: ioptif (present(iopt)) theni = ioptelsei = idefend ifend subroutine set_optionalsubroutine sub(ivec)integer, intent(in), optional :: ivec(:)integer :: ivec_(2)call set_optional(ivec_,(/1,2/))if (any (ivec_ /= (/1, 2/))) call abortcall set_optional(ivec_,(/1,2/),ivec)if (present (ivec)) thenif (any (ivec_ /= ivec)) call abortelseif (any (ivec_ /= (/1, 2/))) call abortend ifend subroutine subend module sub_modprogram mainuse sub_mod, only: subcall sub()call sub((/4,5/))end program main! { dg-final { cleanup-modules "sub_mod" } }
