re PR fortran/48543 (Collapse identical strings)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Wed, 2 Jan 2019 15:25:47 +0000 (15:25 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Wed, 2 Jan 2019 15:25:47 +0000 (15:25 +0000)
2019-01-02  Thomas Koenig  <tkoenig@gcc.gnu.org>

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

From-SVN: r267517

gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/const_chararacter_merge.f90 [new file with mode: 0644]

index 613f048e7785acf3273846ee33dc19534daacd6b..782b3d26c19fa810f7d50653a502d19a9a069a94 100644 (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
diff --git a/gcc/testsuite/gfortran.dg/const_chararacter_merge.f90 b/gcc/testsuite/gfortran.dg/const_chararacter_merge.f90
new file mode 100644 (file)
index 0000000..47df562
--- /dev/null
@@ -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 } }