From: Jerry DeLisle Date: Wed, 28 Dec 2005 07:00:47 +0000 (+0000) Subject: re PR libfortran/25419 (gfortran read does not take comma for default on one entry) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f55be19d7b27405c61dc43e9e2f79e3bc34d5175;p=gcc.git re PR libfortran/25419 (gfortran read does not take comma for default on one entry) 2005-12-28 Jerry DeLisle PR libgfortran/25419 * gfortran.dg/comma.f: New test. From-SVN: r109100 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4f9a0002cbc..daa90ea3fdb 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2005-12-28 Jerry DeLisle + + PR libgfortran/25419 + * gfortran.dg/comma.f: New test. + 2005-12-28 Tobias Schl"uter * lib/gfortran-dg.exp: Remove trailing whitespace. diff --git a/gcc/testsuite/gfortran.dg/comma.f b/gcc/testsuite/gfortran.dg/comma.f new file mode 100644 index 00000000000..d4976935381 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/comma.f @@ -0,0 +1,18 @@ +! { dg-do run } +! PR25419 Default input with commas. +! Derived from example given in PR. +! Contributed by Jerry DeLisle + stuff = 1 + stuff2 = 2 + write(11,'(a)') ",," + rewind(11) + read(11,*)stuff, stuff2 + if (stuff.ne.1.0) call abort() + if (stuff2.ne.2.0) call abort() + rewind (11) + write(11,'(a)') "," + rewind(11) + read(11,*)stuff + if (stuff.ne.1.0) call abort() + end +