Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/advance_1.f90 @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
! { dg-do run } ! PR25463 Check that advance='no' works correctly. ! Derived from example given in PR by Thomas Koenig ! Contributed by Jerry DeLisle <jvdelisle@gcc.gnu.org> program pr25463 character(10) :: str write (10,'(A)',advance="no") 'ab' write (10,'(TL2,A)') 'c' rewind (10) read (10, '(a)') str if (str.ne.'abc') STOP 1 close (10, status='delete') end