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") STOP 1 14 if (b /= "b") STOP 2 15 if (c /= " ") STOP 3 16 end 17