* gfortran.dg/constant_substring.f: New test.
* gfortran.dg/pr22491.f: New test.
From-SVN: r102677
+2005-08-02 David Edelsohn <edelsohn@gnu.org>
+
+ * gfortran.dg/constant_substring.f: New test.
+ * gfortran.dg/pr22491.f: New test.
+
2005-08-02 Jan Hubicka <jh@suse.cz>
* update-threading.c: Replace by the proper one.
--- /dev/null
+! Simplify constant substring
+! { dg-do run }
+ character*2 a
+ character*4 b
+ character*6 c
+ parameter (a="12")
+ parameter (b = a(1:2))
+ write (c,'("#",A,"#")') b
+ if (c .ne. '#12 #') call abort
+ end
+
--- /dev/null
+! PR fortran/21730
+! { dg-do run }
+ character*2 a (1)
+ character*4 b (1)
+ character*6 c
+ parameter (a="12")
+ parameter (b = a)
+ write (c,'("#",A,"#")') b
+ if (c .ne. '#12 #') call abort
+ end
+