re PR fortran/48543 (Collapse identical strings)

2019-01-02  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/48543
	* gfortran.dg/const_chararacter_merge.f90: New test.

From-SVN: r267517
This commit is contained in:
Thomas Koenig 2019-01-02 15:25:47 +00:00
parent 3b456f8da3
commit 3f11aa6aa1
2 changed files with 16 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2019-01-02 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/48543
* gfortran.dg/const_chararacter_merge.f90: New test.
2019-01-02 Jan Hubicka <hubicka@ucw.cz>
PR lto/88130

View file

@ -0,0 +1,11 @@
! { dg-do compile }
! { dg-options "-Os" }
! PR 48543
program main
character(len=17) :: a
character(len=34) :: b
a = 'Supercalifragilis'
b = 'Supercalifragilisticexpialidocious'
print *,a," ",b
end program main
! { dg-final { scan-assembler-times "Supercalifragilis" 1 } }