diff options
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gfortran.dg/warn_concat.f90 | 9 |
2 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 85b4190..098444a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2018-03-18 Thomas Koenig <tkoenig@gcc.gnu.org> + + PR fortran/79929 + * gfortran.dg/warn_concat.f90: New test. + 2018-03-16 Jakub Jelinek <jakub@redhat.com> PR target/84899 diff --git a/gcc/testsuite/gfortran.dg/warn_concat.f90 b/gcc/testsuite/gfortran.dg/warn_concat.f90 new file mode 100644 index 0000000..8006dd3 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/warn_concat.f90 @@ -0,0 +1,9 @@ +! { dg-do compile } +! { dg-additional-options "-Wall -O3" } +! PR 79929 - this used to give a warning. +! Test case by Harald Anlauf. +subroutine gfcbug138 (yerrmsg) + character(*) :: yerrmsg + yerrmsg = "" + yerrmsg = "bug: " // yerrmsg +end subroutine gfcbug138 |