summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/advance.f90
blob: 07b605f885d205eb6a531595f08a2f1d2fc175e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
! { 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') call abort()
end