OSDN Git Service

2010-11-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gfortran.dg / open_dev_null.f90
1 ! { dg-do run }
2 ! PR45723 opening /dev/null for appending writes fails
3 logical :: thefile
4 inquire(file="/dev/null",exist=thefile)
5 if (thefile) then
6   open(unit=7,file="/dev/null",position="append")
7   close(7)
8 endif
9 end