OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gfortran.dg/] [char_bounds_check_fail_1.f90] - Rev 302

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

! { dg-do run }
! { dg-options "-fbounds-check" }
! { dg-shouldfail "Substring out of bounds check" }
! PR fortran/27588
program bound_check
      character*10 zz
      i = 2
      j = i+9
      zz = ' '
      zz(i:j) = 'abcdef'
      print * , zz
      end
! { dg-output "Substring out of bounds: upper bound exceeds string length.*at line 9)}

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

powered by: WebSVN 2.1.0

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