summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/dos_eol.f
blob: 3a22a14b143f604d4349684a3eff6c76ad3ea09d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
! PR libfortran/19678 and PR libfortran/19679
! { dg-do run }
      integer i, j
      
      open (10,status='scratch')
      write (10,'(2A)') '1', achar(13)
      rewind (10)
      read (10,*) i
      if (i .ne. 1) call abort
      close (10)

      open (10,status='scratch')
      write (10,'(2A)') '   1', achar(13)
      write (10,'(2A)') '   2', achar(13)
      rewind (10)
      read (10,'(I4)') i
      read (10,'(I5)') j
      if ((i .ne. 1) .or. (j .ne. 2)) call abort
      end