hppa64: Fix fmt_f_default_field_width_3.f90 and fmt_g_default_field_width_3.f90
[official-gcc.git] / gcc / testsuite / gfortran.dg / dos_eol.f
blob72926bf06bc5732b00bfd66873a4e4e8f067b2d4
1 ! PR libfortran/19678 and PR libfortran/19679
2 ! { dg-do run }
3 integer i, j
5 open (10,status='scratch')
6 write (10,'(2A)') '1', achar(13)
7 rewind (10)
8 read (10,*) i
9 if (i .ne. 1) STOP 1
10 close (10)
12 open (10,status='scratch')
13 write (10,'(2A)') ' 1', achar(13)
14 write (10,'(2A)') ' 2', achar(13)
15 rewind (10)
16 read (10,'(I4)') i
17 read (10,'(I5)') j
18 if ((i .ne. 1) .or. (j .ne. 2)) STOP 2
19 end