aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorBud Davis <bdavis9659@comcast.net>2004-12-24 00:29:07 +0000
committerBud Davis <bdavis@gcc.gnu.org>2004-12-24 00:29:07 +0000
commit5d3a9816945662618f64a6dba1660f95586e515a (patch)
treedc614320959253fb4d1b9ce0d541eb3e51d1031b /gcc/testsuite
parent4a9dd33d4b135f24e6e54ff81653e0986bb2bfff (diff)
downloadgcc-5d3a9816945662618f64a6dba1660f95586e515a.zip
gcc-5d3a9816945662618f64a6dba1660f95586e515a.tar.gz
gcc-5d3a9816945662618f64a6dba1660f95586e515a.tar.bz2
re PR libfortran/19071 (complex formatted output has too many items)
2004-12-23 Bud Davis <bdavis9659@comcast.net> PR fortran/19071 * io/tranfer.c (formatted_transfer): moved check for format reversion inside the processing loop. * gfortran.dg/complex_write.f90: New test. From-SVN: r92582
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gfortran.dg/complex_write.f9015
2 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 6e3c262..f504598 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2004-12-23 Bud Davis <bdavis9659@comcast.net>
+
+ PR fortran/19071
+ * gfortran.dg/complex_write.f90: New test.
+
2004-12-23 Mark Mitchell <mark@codesourcery.com>
PR c++/17595
diff --git a/gcc/testsuite/gfortran.dg/complex_write.f90 b/gcc/testsuite/gfortran.dg/complex_write.f90
new file mode 100644
index 0000000..3b73ba3
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/complex_write.f90
@@ -0,0 +1,15 @@
+! { dg-do run }
+! pr 19071
+! test case provided by
+! Thomas.Koenig@online.de
+ program cio
+ complex a
+ real r1,r2
+ a = cmplx(1.0, 2.0)
+ open(unit=74,status='scratch')
+ write(74,'(1P,E13.5)'),a
+ rewind(74)
+! can read the complex in as two reals, one on each line
+ read(74,'(E13.5)')r1,r2
+ if (r1.ne.1.0 .and. r2.ne.2.0) call abort
+ end