aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerry DeLisle <jvdelisle@gcc.gnu.org>2006-07-31 01:36:44 +0000
committerJerry DeLisle <jvdelisle@gcc.gnu.org>2006-07-31 01:36:44 +0000
commit332e4118b919c6759eb2dd76ad78f169584a7e4a (patch)
tree4a3fe7c586f54e7100d3ed1c9c396e7eddeaac1d
parente43c3311bdbb2fbb340c712741cb3b5a53300c7e (diff)
downloadgcc-332e4118b919c6759eb2dd76ad78f169584a7e4a.zip
gcc-332e4118b919c6759eb2dd76ad78f169584a7e4a.tar.gz
gcc-332e4118b919c6759eb2dd76ad78f169584a7e4a.tar.bz2
re PR fortran/28335 (flush() / write() statement on closed units - error?)
2006-07-30 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/28335 * gfortran.dg/no_unit_error_1.f90: New test. From-SVN: r115836
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gfortran.dg/no_unit_error_1.f907
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index c3a169b..b52a150 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,6 +1,11 @@
2006-07-30 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/28335
+ * gfortran.dg/no_unit_error_1.f90: New test.
+
+2006-07-30 Jerry DeLisle <jvdelisle@gcc.gnu.org>
+
+ PR libgfortran/28335
* gfortran.dg/no_unit_error_1.f90: Delete test.
* gfortran.dg/no_unit_error_2.f90: Delete test.
diff --git a/gcc/testsuite/gfortran.dg/no_unit_error_1.f90 b/gcc/testsuite/gfortran.dg/no_unit_error_1.f90
new file mode 100644
index 0000000..1d69bcc
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/no_unit_error_1.f90
@@ -0,0 +1,7 @@
+! { dg-do run }
+! { dg-shouldfail "UNIT does not exist for FLUSH" }
+! PR28335 Check for error on no unit.
+ close(88)
+ flush(88) ! { dg-output "Specified UNIT in FLUSH is not connected" }
+ end
+