write_to_null.f90: Rename to write_to_null.F90.
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Sat, 10 May 2008 19:37:45 +0000 (19:37 +0000)
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Sat, 10 May 2008 19:37:45 +0000 (19:37 +0000)
* 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

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

index e9dc4f806d6c30040410120dba5de73cf5751059..395a041abe1bbb184c067709f0fa30e8fcf39d7b 100644 (file)
@@ -1,3 +1,9 @@
+2008-05-10  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
+
+       * 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  <rdsandiford@googlemail.com>
 
        PR rtl-optimization/33642
diff --git a/gcc/testsuite/gfortran.dg/write_to_null.F90 b/gcc/testsuite/gfortran.dg/write_to_null.F90
new file mode 100644 (file)
index 0000000..bce1db0
--- /dev/null
@@ -0,0 +1,16 @@
+! { 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)
+       do i = 1,100
+         write(10,*) "Hello, world"
+       end do
+       end
diff --git a/gcc/testsuite/gfortran.dg/write_to_null.f90 b/gcc/testsuite/gfortran.dg/write_to_null.f90
deleted file mode 100644 (file)
index c6f12cb..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-! { dg-do run }
-! pr18983
-! could not write to /dev/null
-       integer i
-       open(10,file="/dev/null")
-       do i = 1,100
-         write(10,*) "Hello, world"
-       end do
-       end