aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJanne Blomqvist <jb@gcc.gnu.org>2005-11-26 11:12:36 +0200
committerJanne Blomqvist <jb@gcc.gnu.org>2005-11-26 11:12:36 +0200
commitcea51b427ad31de90b76a378321458ab504a4f77 (patch)
tree80897fe0a2371eae7241f310f2f4a3d46760962f /gcc
parent18eaea7f15cf89aa5e0c9c99c76b14dfc39563c5 (diff)
downloadgcc-cea51b427ad31de90b76a378321458ab504a4f77.zip
gcc-cea51b427ad31de90b76a378321458ab504a4f77.tar.gz
gcc-cea51b427ad31de90b76a378321458ab504a4f77.tar.bz2
libgfortran ChangeLog:
2005-11-26 Janne Blomqvist <jb@gcc.gnu.org> PR libgfortran/24945 * io/open.c (edit_modes): Check for STATUS_UNKNOWN flag. testsuite ChangeLog 2005-11-26 Janne Blomqvist <jb@gcc.gnu.org> PR libgfortran/24945 * gfortran.dg/open_status_2.f90: New test. From-SVN: r107538
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gfortran.dg/open_status_2.f9012
2 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 99342b2..4f73095 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2005-11-26 Janne Blomqvist <jb@gcc.gnu.org>
+
+ PR libgfortran/24945
+ * gfortran.dg/open_status_2.f90: New test.
+
2005-11-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* gcc.c-torture/execute/builtins/fprintf.c,
diff --git a/gcc/testsuite/gfortran.dg/open_status_2.f90 b/gcc/testsuite/gfortran.dg/open_status_2.f90
new file mode 100644
index 0000000..8b4b577
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/open_status_2.f90
@@ -0,0 +1,12 @@
+! { dg-do run }
+! PR 25036
+! Test reopening file without status specifier or with
+! status='unknown'. The standard says that these two must behave
+! identically, but the actual behaviour is processor dependent.
+program open_status_2
+ open(10, file="f", form='unformatted', status='unknown')
+ open(10, file="f", form='unformatted', status='unknown')
+ open(10, file="f", form='unformatted')
+ close(10, status='delete')
+end program open_status_2
+