]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR fortran/21730 ([4.0 only] Character length incorrect.)
authorDavid Edelsohn <edelsohn@gnu.org>
Sun, 17 Jul 2005 00:55:59 +0000 (00:55 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Sun, 17 Jul 2005 00:55:59 +0000 (20:55 -0400)
        PR fortran/21730
        * gfortran.dg/pr21730.f: New test.

From-SVN: r102105

gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr21730.f [new file with mode: 0644]

index 6590ad75820cfc18717ef1f05ced9a890570e73a..71f5b93dbcc4cdd65dcbb23afc16afd6bbd4c20b 100644 (file)
@@ -1,3 +1,8 @@
+2005-07-16  David Edelsohn  <edelsohn@gnu.org>
+
+       PR fortran/21730
+       * gfortran.dg/pr21730.f: New test.
+
 2005-07-16  Joseph S. Myers  <joseph@codesourcery.com>
 
        PR c/22421
diff --git a/gcc/testsuite/gfortran.dg/pr21730.f b/gcc/testsuite/gfortran.dg/pr21730.f
new file mode 100644 (file)
index 0000000..43b7362
--- /dev/null
@@ -0,0 +1,11 @@
+! PR fortran/21730
+! {do-do run}
+      character*2 a
+      character*4 b
+      character*6 c
+      parameter (a="12")
+      parameter (b = a)
+      write (c,'("#",A,"#")') b
+      if (c .ne. '#12  #') call abort
+      end
+