]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR fortran/28335 (flush() / write() statement on closed units - error?)
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Mon, 31 Jul 2006 01:36:44 +0000 (01:36 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Mon, 31 Jul 2006 01:36:44 +0000 (01:36 +0000)
2006-07-30  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/28335
* gfortran.dg/no_unit_error_1.f90: New test.

From-SVN: r115836

gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/no_unit_error_1.f90 [new file with mode: 0644]

index c3a169b50b9b3e3d513455a88854a43d37cdf573..b52a1509e0166d1df98e927b3db265a1d209bb7b 100644 (file)
@@ -1,3 +1,8 @@
+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
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 (file)
index 0000000..1d69bcc
--- /dev/null
@@ -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
+