Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/char_bounds_check_fail_1.f90 @ 127:4c56639505ff
fix function.c and add CbC-example Makefile
author | mir3636 |
---|---|
date | Wed, 11 Apr 2018 18:46:58 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
! { 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 "At line 10.*Substring out of bounds: upper bound \\(11\\) of 'zz' exceeds string length" }