From ba36d0b9d472c4193772878969d57d3d5ea1ee5a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20K=C3=B6nig?= Date: Sun, 19 Apr 2020 14:05:46 +0200 Subject: [PATCH] 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. --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gfortran.dg/pointer_init_12.f90 | 8 ++++++++ 2 files changed, 13 insertions(+) create mode 100644 gcc/testsuite/gfortran.dg/pointer_init_12.f90 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 315a29bd05f..122c737b189 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +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 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 00000000000..b2bce01ab57 --- /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 -- 2.30.2