diff options
author | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2006-03-18 01:59:50 +0000 |
---|---|---|
committer | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2006-03-18 01:59:50 +0000 |
commit | 3eb015bcf6cd1d6b2d43b0e3284b1771a1860581 (patch) | |
tree | d76ce257881328eed2382d6f06932c72eafce4cd | |
parent | 54f9e2781e026570ce63e3f0689bb7a7c1ab79a6 (diff) | |
download | gcc-3eb015bcf6cd1d6b2d43b0e3284b1771a1860581.zip gcc-3eb015bcf6cd1d6b2d43b0e3284b1771a1860581.tar.gz gcc-3eb015bcf6cd1d6b2d43b0e3284b1771a1860581.tar.bz2 |
re PR fortran/26509 (incorrect behaviour of error-handler for direct access write)
2006-03-17 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/26509
gfortran.dg/write_direct_eor.f90: New test.
From-SVN: r112199
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gfortran.dg/write_direct_eor.f90 | 12 |
2 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1dca3d2..f2c2947 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2006-03-17 Jerry DeLisle <jvdelisle@gcc.gnu.org> + + PR libgfortran/26509 + gfortran.dg/write_direct_eor.f90: New test. + 2006-03-17 David Edelsohn <edelsohn@gnu.org> * gcc.target/powerpc/pr26350.c: New. diff --git a/gcc/testsuite/gfortran.dg/write_direct_eor.f90 b/gcc/testsuite/gfortran.dg/write_direct_eor.f90 new file mode 100644 index 0000000..9044642 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/write_direct_eor.f90 @@ -0,0 +1,12 @@ +! { dg-do run } +! PR26509 : Writing beyond fixed length direct access records. +! Test case derived from PR. +! Submitted by Jerry Delisle <jvdelisle@gcc.gnu.org>. +program testrecl + implicit none + open(unit = 10, form = 'unformatted', access = 'direct', recl = 4) + write(unit=10,rec=1, err=100) 1d0 + call abort() + 100 continue + close(unit=10, status='delete') + end |