diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gfortran.dg/ftell_1.f90')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gfortran.dg/ftell_1.f90 | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gfortran.dg/ftell_1.f90 b/gcc-4.9/gcc/testsuite/gfortran.dg/ftell_1.f90 new file mode 100644 index 000000000..4f617acb0 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gfortran.dg/ftell_1.f90 @@ -0,0 +1,16 @@ +! { dg-do run } + integer(kind=8) o, o2 + + open (10, status="scratch") + call ftell (10, o) + if (o /= 0) call abort + write (10,"(A)") "1234567" + call ftell (10, o) + if (o /= 8 .and. o /= 9) call abort + write (10,"(A)") "1234567" + call ftell (10, o2) + if (o2 /= 2 * o) call abort + close (10) + call ftell (10, o) + if (o /= -1) call abort + end |