URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [bounds_check_8.f90] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do run }! { dg-options "-fbounds-check" }! PR fortran/32036program testtype tinteger, dimension (5) :: fieldend type ttype (t), dimension (2) :: ainteger :: callstype xyz_typeinteger :: xend type xyz_typetype (xyz_type), dimension(3) :: xyzcharacter(len=80) :: sxyz(1)%x = 11111xyz(2)%x = 0xyz(3)%x = 0write(s,*) xyz(bar())if (trim(adjustl(s)) /= "11111") call aborta(1)%field = 0a(2)%field = 0calls = 0if (sum(a(foo(calls))%field) /= 0) call abortif (calls .ne. 1) call abortcontainsfunction foo (calls)integer :: calls, foocalls = calls + 1foo = 2end function foointeger function bar ()integer, save :: i = 1bar = ii = i + 1end functionend program test
