URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gfortran.dg/] [string_3.f90] - Rev 302
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