analyzer: g++ testsuite support
authorDavid Malcolm <dmalcolm@redhat.com>
Thu, 21 Nov 2019 17:30:45 +0000 (12:30 -0500)
committerDavid Malcolm <dmalcolm@redhat.com>
Wed, 12 Feb 2020 01:58:38 +0000 (20:58 -0500)
commit35e24106fc1b782e70f8339e0a1321a2bc7a7f15
tree5028693a43030791c10a0fd7330acf20b0894342
parent3889b0cb458370072839ec27fb03881fa4cbe94d
analyzer: g++ testsuite support

PR analyzer/93288 reports a C++-specific ICE with -fanalyzer.

This patch creates the beginnings of a C++ test suite for the analyzer,
so that there's a place to put test coverage for the fix.
It adds a regression test for PR analyzer/93212, an ICE fixed
in r10-5970-g32077b693df8e3ed0424031a322df23822bf2f7e.

gcc/testsuite/ChangeLog:
PR analyzer/93212
* g++.dg/analyzer/analyzer.exp: New subdirectory and .exp suite.
* g++.dg/analyzer/malloc.C: New test.
* g++.dg/analyzer/pr93212.C: New test.
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/analyzer/analyzer.exp [new file with mode: 0644]
gcc/testsuite/g++.dg/analyzer/malloc.C [new file with mode: 0644]
gcc/testsuite/g++.dg/analyzer/pr93212.C [new file with mode: 0644]