Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/complex_write.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 19071 ! test case provided by ! Thomas.Koenig@online.de program cio complex a real r1,r2 a = cmplx(1.0, 2.0) open(unit=74,status='scratch') write(74,'(1P,E13.5)')a rewind(74) ! can read the complex in as two reals, one on each line read(74,'(E13.5)')r1,r2 if (r1.ne.1.0 .and. r2.ne.2.0) STOP 1 end