summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/backspace_7.f90
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gfortran.dg/backspace_7.f90')
-rw-r--r--gcc/testsuite/gfortran.dg/backspace_7.f9011
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/backspace_7.f90 b/gcc/testsuite/gfortran.dg/backspace_7.f90
new file mode 100644
index 000000000..09cce731a
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/backspace_7.f90
@@ -0,0 +1,11 @@
+! { dg-do run { target fd_truncate } }
+!pr18284 BACKSPACE broken
+ open(unit=10,access='SEQUENTIAL',status='SCRATCH')
+ do I = 1,200
+ write(10,*)I
+ end do
+ backspace(10)
+ backspace(10)
+ read(10,*)I
+ if (I.NE.199) call abort
+ end