From: Thomas König Date: Sun, 19 Apr 2020 12:05:46 +0000 (+0200) Subject: PR 94347 - add a test case for something a PR has fixed itself. X-Git-Tag: upstream/12.2.0~17235 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ba36d0b9d472c4193772878969d57d3d5ea1ee5a;p=platform%2Fupstream%2Fgcc.git PR 94347 - add a test case for something a PR has fixed itself. 2020-04-19 Thomas Koenig PR fortran/94347 * gfortran.dg/char_pointer_init_1.f90: New test. --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 315a29b..122c737 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2020-04-19 Thomas Koenig + PR fortran/94347 + * gfortran.dg/char_pointer_init_1.f90: New test. + +2020-04-19 Thomas Koenig + PR fortran/57129 * gfortran.dg/subroutine_as_type.f90: New test. diff --git a/gcc/testsuite/gfortran.dg/pointer_init_12.f90 b/gcc/testsuite/gfortran.dg/pointer_init_12.f90 new file mode 100644 index 0000000..b2bce01 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/pointer_init_12.f90 @@ -0,0 +1,8 @@ +! { dg-do compile } +! PR 94347 - this used to cause an ICE. +! Original test case by "Serghei". +program main + character(10), target :: a + character(:), pointer :: p => null() + p => a +end program main