analyzer: add test coverage for gfortran ICE fix [PR 93779]
authorDavid Malcolm <dmalcolm@redhat.com>
Mon, 17 Feb 2020 08:28:08 +0000 (03:28 -0500)
committerDavid Malcolm <dmalcolm@redhat.com>
Tue, 18 Feb 2020 13:09:29 +0000 (08:09 -0500)
commit68f9c41d54a7839e90d10e1400c8726c8ccde88d
treef55300e2630784fca1aab4d1f07bc61b91183a4f
parent8f55a0eec910dd02992f4caca083048d91c0b2e1
analyzer: add test coverage for gfortran ICE fix [PR 93779]

PR analyzer/93779 reports an ICE in gfortran with -fanalyzer
that was fixed for GCC 10 by a workaround in
f76a88ebf089871dcce215aa0cb1956ccc060895; the tree code in
question is a FUNCTION_DECL.

Given that I want to rework the above patch at some point, it seems
prudent to add test coverage to ensure the ICE doesn't come back,
which this patch does.

gcc/testsuite/ChangeLog:
PR analyzer/93779
* gfortran.dg/analyzer/pr88304-2.f90: New test, adapted from
gfortran.fortran-torture/compile/pr88304-2.f90
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/analyzer/pr88304-2.f90 [new file with mode: 0644]