re PR libfortran/25419 (gfortran read does not take comma for default on one entry)
2005-12-28 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/25419 * gfortran.dg/comma.f: New test. From-SVN: r109100
This commit is contained in:
parent
93f006d8e3
commit
f55be19d7b
2 changed files with 23 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2005-12-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
||||
|
||||
PR libgfortran/25419
|
||||
* gfortran.dg/comma.f: New test.
|
||||
|
||||
2005-12-28 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
|
||||
|
||||
* lib/gfortran-dg.exp: Remove trailing whitespace.
|
||||
|
|
18
gcc/testsuite/gfortran.dg/comma.f
Normal file
18
gcc/testsuite/gfortran.dg/comma.f
Normal file
|
@ -0,0 +1,18 @@
|
|||
! { dg-do run }
|
||||
! PR25419 Default input with commas.
|
||||
! Derived from example given in PR.
|
||||
! Contributed by Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
||||
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
|
||||
|
Loading…
Add table
Reference in a new issue