]> git.ipfire.org Git - thirdparty/gcc.git/commit
analyzer: add regression test for PR 107158
authorDavid Malcolm <dmalcolm@redhat.com>
Wed, 5 Oct 2022 18:07:47 +0000 (14:07 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Wed, 5 Oct 2022 18:07:47 +0000 (14:07 -0400)
commitef878564140cbcf23f479da88e07e5a996cec6bb
treeeb54f80aad3776c15465dfdd959e6ce3112b3fa5
parent2eff4fe383a59de94267352e25f77b29d8e6bb42
analyzer: add regression test for PR 107158

PR analyzer/107158 reports an ICE when using
  -fanalyzer -fanalyzer-call-summaries
on a particular source file.

It turns out I just fixed this ICE in r13-3094-g6832c95c0e1a58.

This followup patch adds a somewhat reduced reproducer as a regression
test.  Unfortunately, although the ICE is fixed, there are two false
positives from -Wanalyzer-malloc-leak on the test case, so I'm going to
use PR analyzer/107158 for tracking those false positives.

gcc/testsuite/ChangeLog:
PR analyzer/107158
* gcc.dg/analyzer/call-summaries-pr107158.c: New test.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
gcc/testsuite/gcc.dg/analyzer/call-summaries-pr107158.c [new file with mode: 0644]