URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [string_3.f90] - Rev 399
Go to most recent revision | Compare with Previous | Blame | View Log
! { dg-do compile }
!
subroutine foo(i)
implicit none
integer, intent(in) :: i
character(len=i) :: s
s = ''
print *, s(1:2_8**32_8+3_8) ! { dg-error "too large" }
print *, s(2_8**32_8+3_8:2_8**32_8+4_8) ! { dg-error "too large" }
print *, len(s(1:2_8**32_8+3_8)) ! { dg-error "too large" }
print *, len(s(2_8**32_8+3_8:2_8**32_8+4_8)) ! { dg-error "too large" }
print *, s(2_8**32_8+3_8:1)
print *, s(2_8**32_8+4_8:2_8**32_8+3_8)
print *, len(s(2_8**32_8+3_8:1))
print *, len(s(2_8**32_8+4_8:2_8**32_8+3_8))
end subroutine
Go to most recent revision | Compare with Previous | Blame | View Log