Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/fmt_t_3.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 } ! PR31051 bug with x and t format descriptors. ! Test case prepared by Jerry DeLisle <jvdelisle@gcc.gnu.org> from PR. program t integer, parameter :: n = 9 character(len=40) :: fmt character(len=2), dimension(n) :: y open(unit=10, status="scratch") y = 'a ' fmt = '(a,1x,(t7, 3a))' write(10, fmt) 'xxxx', (y(i), i = 1,n) rewind(10) read(10, '(a)') fmt if (fmt.ne."xxxx a a a") STOP 1 end program t