* gfortran.dg/iostat_2.f90: New test.
authorFrancois-Xavier Coudert <coudert@clipper.ens.fr>
Fri, 9 Sep 2005 22:01:19 +0000 (00:01 +0200)
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Fri, 9 Sep 2005 22:01:19 +0000 (22:01 +0000)
From-SVN: r104110

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

index 3942c3348a86daff3801359c08fd59b4ed1a9897..a8236a5ecbf35b431dc12dc0e0a606393b8e5e09 100644 (file)
@@ -1,3 +1,7 @@
+2005-09-09  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
+
+       * gfortran.dg/iostat_2.f90: New test.
+
 2005-09-09  Mark Mitchell  <mark@codesourcery.com>
 
        PR c++/22252
diff --git a/gcc/testsuite/gfortran.dg/iostat_2.f90 b/gcc/testsuite/gfortran.dg/iostat_2.f90
new file mode 100644 (file)
index 0000000..2b4cb5d
--- /dev/null
@@ -0,0 +1,7 @@
+! PR libfortran/23784
+! { dg-do run }
+  integer i
+  close(10, status="whatever", iostat=i)
+  if (i == 0) call abort()
+  write(17,*) 'foo'
+  end