]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
backport: re PR fortran/47878 (187.facerec miscompares)
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Mon, 7 Mar 2011 03:14:00 +0000 (03:14 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Mon, 7 Mar 2011 03:14:00 +0000 (03:14 +0000)
2011-03-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

Backport from mainline
PR libgfortran/47878
* gfortran.dg/pr47878.f90: New test.

From-SVN: r170733

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

index b9fc19c506113e36c51105ebbbf73446685fcbe1..87e8ac274832f99165b56cf3f8a66396eb89e5ca 100644 (file)
@@ -1,3 +1,9 @@
+2011-03-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
+
+       Backport from mainline
+       PR libgfortran/47878
+       * gfortran.dg/pr47878.f90: New test.
+
 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
 
        PR tree-optimization/46620
diff --git a/gcc/testsuite/gfortran.dg/pr47878.f90 b/gcc/testsuite/gfortran.dg/pr47878.f90
new file mode 100644 (file)
index 0000000..9cc4a08
--- /dev/null
@@ -0,0 +1,10 @@
+! PR fortran/47878
+! { dg-do run }
+  integer :: a(5)
+  open (99, recl = 40)
+  write (99, '(5i3)') 1, 2, 3
+  rewind (99)
+  read (99, '(5i3)') a
+  if (any (a.ne.(/1, 2, 3, 0, 0/))) call abort 
+  close (99, status = 'delete')
+end