Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/convert_implied_open.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 } ! { dg-options "-fconvert=swap" } ! PR 26735 - implied open didn't use to honor -fconvert program main implicit none integer (kind=4) :: i1, i2, i3 write (10) 1_4 close (10) open (10, form="unformatted", access="direct", recl=4) read (10,rec=1) i1 read (10,rec=2) i2 read (10,rec=3) i3 if (i1 /= 4 .or. i2 /= 1 .or. i3 /= 4) STOP 1 close (10,status="delete") end program main