diff options
author | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2005-12-19 07:02:05 +0000 |
---|---|---|
committer | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2005-12-19 07:02:05 +0000 |
commit | 2803e9970df940bf450c41e68cb15238382f4db2 (patch) | |
tree | 416e4a5258230331e976de1809df3037aeca116f /gcc | |
parent | 0a73639369d4268c82aec56b8fcc23ac5e4383b6 (diff) | |
download | gcc-2803e9970df940bf450c41e68cb15238382f4db2.zip gcc-2803e9970df940bf450c41e68cb15238382f4db2.tar.gz gcc-2803e9970df940bf450c41e68cb15238382f4db2.tar.bz2 |
re PR libfortran/25463 (T edit descriptor and ADVANCE="no")
2005-12-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/25463
* gfortran.dg/advance.f90: New test.
From-SVN: r108785
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gfortran.dg/advance.f90 | 12 |
2 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c12b788..6dd7053 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -8,6 +8,11 @@ PR rtl-optimization/21041 * gcc.dg/pr21041.c: New test. +2005-12-18 Jerry DeLisle <jvdelisle@gcc.gnu.org> + + PR libgfortran/25463 + * gfortran.dg/advance.f90: New test. + 2005-12-18 Andreas Krebbel <krebbel1@de.ibm.com> * gcc.dg/20051201-1.c: New test. diff --git a/gcc/testsuite/gfortran.dg/advance.f90 b/gcc/testsuite/gfortran.dg/advance.f90 new file mode 100644 index 0000000..07b605f --- /dev/null +++ b/gcc/testsuite/gfortran.dg/advance.f90 @@ -0,0 +1,12 @@ +! { dg-do run } +! PR25463 Check that advance='no' works correctly. +! Derived from example given in PR by Thomas Koenig +! Contributed by Jerry DeLisle <jvdelisle@gcc.gnu.org> +program pr25463 + character(10) :: str + write (10,'(A)',advance="no") 'ab' + write (10,'(TL2,A)') 'c' + rewind (10) + read (10, '(a)') str + if (str.ne.'abc') call abort() +end |