Debian Codegraph @

gcc/testsuite/gfortran.dg/pr109358.f90

raw
1 ! { dg-do run }
2 ! PR109358, test that tabs during stream io are correct.
3 program tabs
4 implicit none
5 integer :: fd
6 character(64) :: line
7 open(newunit=fd, file="otabs.txt", form="formatted", access="stream")
8 write(fd, "(i4, t40, i4, t20, i5.5)") 1234, 5555, 67890
9 close(fd)
10 open(newunit=fd, file="otabs.txt", form="formatted")
11 read(fd,"(a)") line
12 close(fd, status='delete')
13 if (line .ne. "1234 67890 5555") stop 10
14 end program tabs