From: Jerry DeLisle Date: Mon, 31 Jul 2006 01:36:44 +0000 (+0000) Subject: re PR fortran/28335 (flush() / write() statement on closed units - error?) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=332e4118b919c6759eb2dd76ad78f169584a7e4a;p=gcc.git re PR fortran/28335 (flush() / write() statement on closed units - error?) 2006-07-30 Jerry DeLisle PR libgfortran/28335 * gfortran.dg/no_unit_error_1.f90: New test. From-SVN: r115836 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c3a169b50b9..b52a1509e01 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2006-07-30 Jerry DeLisle + + PR libgfortran/28335 + * gfortran.dg/no_unit_error_1.f90: New test. + 2006-07-30 Jerry DeLisle 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 index 00000000000..1d69bccb809 --- /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 +