* gfortran.dg/open_dev_null.f90: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166518
138bc75d-0d04-0410-961f-
82ee72b054a4
+2010-11-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
+
+ * gfortran.dg/open_dev_null.f90: New test.
+
2010-11-09 Jan Hubicka <jh@suse.cz>
* testsuite/gcc.target/i386/recip-vec-sqrtf-avx.c: Update for loop unrolling.
--- /dev/null
+! { dg-do run }
+! PR45723 opening /dev/null for appending writes fails
+logical :: thefile
+inquire(file="/dev/null",exist=thefile)
+if (thefile) then
+ open(unit=7,file="/dev/null",position="append")
+ close(7)
+endif
+end