Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gfortran.dg / fmt_t_7.f
blob718668ff40467e6c99784bc27712c5a2dc00521a
1 ! { dg-do run { target fd_truncate } }
2 ! PR34974 null bytes when reverse-tabbing long records
3 ! Test case prepared by Jerry DeLisle <jvdelisle@gcc.gnu.org>
4 program test
5 character(1) :: a, b, c
6 write (10,'(t50000,a,t1,a)') 'b', 'a'
7 close (10)
8 open (10, access="stream")
9 read (10, pos=1) a
10 read (10, pos=50000) b
11 read (10, pos=25474) c
12 close (10, status="delete")
13 if (a /= "a") call abort
14 if (b /= "b") call abort
15 if (c /= " ") call abort
16 end