Commit 776928b4 by David Edelsohn Committed by David Edelsohn

constant_substring.f: New test.

        * gfortran.dg/constant_substring.f: New test.
        * gfortran.dg/pr22491.f: New test.

From-SVN: r102677
parent c2fee3de
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.
......
! 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
! 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment