* cfgloopmanip.c (duplicate_loop_to_header_edge): Cleanup profile
[official-gcc.git] / gcc / testsuite / gfortran.dg / streamio_5.f90
blobfe7c21ce7d5a761ad13adfc797684c67822eda5d
1 ! { dg-do run }
2 ! PR25828 Stream IO test 5, unformatted single byte
3 ! Contributed by Jerry DeLisle <jvdelisle@verizon.net>.
4 program streamtest5
5 implicit none
6 character(1) :: lf = char(10)
7 character(1) :: tchar
8 integer :: i,j,k
10 open(10, file="teststream_streamio_5", access="stream", form="unformatted")
12 do i=1,1229
13 do j=0,9
14 write(10) j
15 end do
16 write(10) lf
17 end do
19 close(10)
21 open(10, file="teststream_streamio_5", access="stream", form="unformatted")
23 do i=1,1229
24 do j=0,9
25 read(10) k
26 if (k.ne.j) call abort()
27 end do
28 read(10) tchar
29 if (tchar.ne.lf) call abort()
30 end do
31 close(10,status="delete")
32 end program streamtest5