From: Francois-Xavier Coudert Date: Sat, 10 May 2008 19:37:45 +0000 (+0000) Subject: write_to_null.f90: Rename to write_to_null.F90. X-Git-Tag: releases/gcc-4.4.0~5042 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6e90dc6b64630fd7485eff318a24531a49654daf;p=thirdparty%2Fgcc.git write_to_null.f90: Rename to write_to_null.F90. * write_to_null.f90: Rename to write_to_null.F90. * write_to_null.F90: On Windows, "nul" is the equivalent of the Unix /dev/null. From-SVN: r135158 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e9dc4f806d6c..395a041abe1b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2008-05-10 Francois-Xavier Coudert + + * write_to_null.f90: Rename to write_to_null.F90. + * write_to_null.F90: On Windows, "nul" is the equivalent of the + Unix /dev/null. + 2008-05-10 Richard Sandiford PR rtl-optimization/33642 diff --git a/gcc/testsuite/gfortran.dg/write_to_null.f90 b/gcc/testsuite/gfortran.dg/write_to_null.F90 similarity index 56% rename from gcc/testsuite/gfortran.dg/write_to_null.f90 rename to gcc/testsuite/gfortran.dg/write_to_null.F90 index c6f12cb2ec53..bce1db03a7fa 100644 --- a/gcc/testsuite/gfortran.dg/write_to_null.f90 +++ b/gcc/testsuite/gfortran.dg/write_to_null.F90 @@ -1,8 +1,15 @@ ! { dg-do run } ! pr18983 ! could not write to /dev/null + +#if defined _WIN32 +#define DEV_NULL "nul" +#else +#define DEV_NULL "/dev/null" +#endif + integer i - open(10,file="/dev/null") + open(10,file=DEV_NULL) do i = 1,100 write(10,*) "Hello, world" end do