OSDN Git Service

* gfortran.dg/slash_1.f90: New test.
authorfxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 28 Jun 2005 11:47:15 +0000 (11:47 +0000)
committerfxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 28 Jun 2005 11:47:15 +0000 (11:47 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101378 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 4110b33..f100e45 100644 (file)
@@ -1,3 +1,8 @@
+2005-06-28  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
+
+       PR libfortran/22170
+       * gfortran.dg/slash_1.f90: New test.
+
 2005-06-27  Richard Henderson  <rth@redhat.com>
 
        * gcc.dg/vect/vect-reduc-1.c: Adjust test to properly validate MIN.
diff --git a/gcc/testsuite/gfortran.dg/slash_1.f90 b/gcc/testsuite/gfortran.dg/slash_1.f90
new file mode 100644 (file)
index 0000000..d4a59a3
--- /dev/null
@@ -0,0 +1,13 @@
+! PR libfortran/22170
+! { dg-do run }
+  integer i
+  open (10,status='scratch')
+  write (10,'(A,2/,A)') '12', '17'
+  rewind (10)
+  read (10,'(I2)') i
+  if (i /= 12) call abort
+  read (10,'(I2)') i
+  if (i /= 0) call abort
+  read (10,'(I2)') i
+  if (i /= 17) call abort
+  end