OpenCores
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/] [string_3.f90] - Blame information for rev 327

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 302 jeremybenn
! { dg-do compile }
2
!
3
subroutine foo(i)
4
  implicit none
5
  integer, intent(in) :: i
6
  character(len=i) :: s
7
 
8
  s = ''
9
  print *, s(1:2_8**32_8+3_8) ! { dg-error "too large" }
10
  print *, s(2_8**32_8+3_8:2_8**32_8+4_8) ! { dg-error "too large" }
11
  print *, len(s(1:2_8**32_8+3_8)) ! { dg-error "too large" }
12
  print *, len(s(2_8**32_8+3_8:2_8**32_8+4_8)) ! { dg-error "too large" }
13
 
14
  print *, s(2_8**32_8+3_8:1)
15
  print *, s(2_8**32_8+4_8:2_8**32_8+3_8)
16
  print *, len(s(2_8**32_8+3_8:1))
17
  print *, len(s(2_8**32_8+4_8:2_8**32_8+3_8))
18
 
19
end subroutine

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.