testsuite: add regression test for PR analyzer/94596
authorDavid Malcolm <dmalcolm@redhat.com>
Wed, 17 Feb 2021 22:50:52 +0000 (17:50 -0500)
committerDavid Malcolm <dmalcolm@redhat.com>
Wed, 17 Feb 2021 22:50:52 +0000 (17:50 -0500)
commit963aecff2473080d748b2fc1ea2e32cef36cab11
treeda6a9a3a63cb8c361dae5369b57be7536529bbe5
parentd8889c99aab4b599aa7ceb7079e69a9766171336
testsuite: add regression test for PR analyzer/94596

This use-after-free false positive affected GCC 10, but seems to be
fixed in trunk for GCC 11; adding a reduced version as a regression
test.

gcc/testsuite/ChangeLog:
PR analyzer/94596
* gcc.dg/analyzer/pr94596.c: New test.
gcc/testsuite/gcc.dg/analyzer/pr94596.c [new file with mode: 0644]