1 ! { dg-do run { target fd_truncate } }
2 ! PR30435 Slash at end of input not recognized according to standard.
3 ! Test case from PR by Steve Kargl.
7 ! This worked as expected
8 open(unit=10, file='tmp.dat')
9 write(10,*) '1 2 3 / 4'
11 a = -1; b = -1; c = -1; d = -1;
13 if (d.ne.-1) call abort()
15 ! This worked as expected
19 a = -2; b = -2; c = -2; d = -2;
21 if (d.ne.-2) call abort()
23 ! This worked as expected.
28 a = -3; b = -3; c = -3; d = -3;
30 if (d.ne.-3) call abort()
32 ! This failed before the patch.
37 a = -4; b = -4; c = -4; d = -4;
39 if (d.ne.-4) call abort()
41 close(unit=10, status='delete')