summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/dollar_edit_descriptor_1.f
blob: 4029ff2db6584099051e850ae339fdaca6307fdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
! { dg-do run }
! { dg-options "-w" }
! PR libfortran/20006
      character*5 c
      open (42,status='scratch')
      write (42,'(A,$)') 'abc'
      write (42,'(A)') 'de'
      rewind (42)
      read (42,'(A)') c
      close (42)

      if (c /= 'abcde') STOP 1
      end