From c823ae53a4ba282a72f652f63f32fb0e159050fb Mon Sep 17 00:00:00 2001
From: jvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Wed, 28 Dec 2005 07:00:47 +0000
Subject: [PATCH] 2005-12-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/25419
	* gfortran.dg/comma.f: New test.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109100 138bc75d-0d04-0410-961f-82ee72b054a4
---
 gcc/testsuite/ChangeLog           |  5 +++++
 gcc/testsuite/gfortran.dg/comma.f | 18 ++++++++++++++++++
 2 files changed, 23 insertions(+)
 create mode 100644 gcc/testsuite/gfortran.dg/comma.f

diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 4f9a0002cbc0..daa90ea3fdb7 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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.
diff --git a/gcc/testsuite/gfortran.dg/comma.f b/gcc/testsuite/gfortran.dg/comma.f
new file mode 100644
index 000000000000..d49769353818
--- /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  <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
+
-- 
GitLab