aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Koenig <tkoenig@gcc.gnu.org>2009-06-30 17:10:06 +0000
committerThomas Koenig <tkoenig@gcc.gnu.org>2009-06-30 17:10:06 +0000
commitc1a5cfab17521708db174ed25707f2eee57727fe (patch)
treef37d6024b286ee651134976de62875e9c8e369ec
parent3e6d828d524ed8f699ff96ad0d34430e8e513876 (diff)
downloadgcc-c1a5cfab17521708db174ed25707f2eee57727fe.zip
gcc-c1a5cfab17521708db174ed25707f2eee57727fe.tar.gz
gcc-c1a5cfab17521708db174ed25707f2eee57727fe.tar.bz2
re PR fortran/40576 (Endless loop in internal write)
2009-06-30 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/40576 * gfortran.dg/internal_write_1.f90: New testcase. From-SVN: r149109
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gfortran.dg/internal_write_1.f909
2 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 2862d9c..12d70b9 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2009-06-30 Thomas Koenig <tkoenig@gcc.gnu.org>
+
+ PR fortran/40576
+ * gfortran.dg/internal_write_1.f90: New testcase.
+
2009-06-30 Janus Weil <janus@gcc.gnu.org>
PR fortran/40594
diff --git a/gcc/testsuite/gfortran.dg/internal_write_1.f90 b/gcc/testsuite/gfortran.dg/internal_write_1.f90
new file mode 100644
index 0000000..3dfcaad
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/internal_write_1.f90
@@ -0,0 +1,9 @@
+! { dg-do run }
+! { dg-shouldfail "End of file" }
+program main
+ character(len=20) :: line
+ integer, dimension(4) :: n
+ n = 1
+ write(line,'(2I2)') n
+end program main
+! { dg-output "Fortran runtime error: End of file" }