From 3f11aa6aa130b9a8e6be7f6aeea34af9a5badb8a Mon Sep 17 00:00:00 2001 From: Thomas Koenig Date: Wed, 2 Jan 2019 15:25:47 +0000 Subject: [PATCH] re PR fortran/48543 (Collapse identical strings) 2019-01-02 Thomas Koenig PR fortran/48543 * gfortran.dg/const_chararacter_merge.f90: New test. From-SVN: r267517 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gfortran.dg/const_chararacter_merge.f90 | 11 +++++++++++ 2 files changed, 16 insertions(+) create mode 100644 gcc/testsuite/gfortran.dg/const_chararacter_merge.f90 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 613f048e778..782b3d26c19 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-01-02 Thomas Koenig + + PR fortran/48543 + * gfortran.dg/const_chararacter_merge.f90: New test. + 2019-01-02 Jan Hubicka PR lto/88130 diff --git a/gcc/testsuite/gfortran.dg/const_chararacter_merge.f90 b/gcc/testsuite/gfortran.dg/const_chararacter_merge.f90 new file mode 100644 index 00000000000..47df5626d4a --- /dev/null +++ b/gcc/testsuite/gfortran.dg/const_chararacter_merge.f90 @@ -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 } } -- 2.30.2