Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/substr_7.f90 @ 144:8f4e72ab4e11
fix segmentation fault caused by nothing next cur_op to end
author | Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 23 Dec 2018 21:23:56 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
! { dg-do run } ! PR 70068 - used to allocate too much memory ! Original test cases by Gerhard Steinmetz program p integer :: i character(3), parameter :: x(3) = ['abc', 'ijk', 'xyz'] character(3) :: y(2) character(99), parameter :: x2(2) = ' ' character(99), parameter :: y2=x(2)(99:1) y = [(x(i)(i:1), i=2,3)] if (any(y /= '')) stop 1 if (y2 /= '') stop 2 end