analyzer: add regression test for fixed ICE [PR94028]
authorDavid Malcolm <dmalcolm@redhat.com>
Wed, 4 Mar 2020 17:10:34 +0000 (12:10 -0500)
committerDavid Malcolm <dmalcolm@redhat.com>
Wed, 4 Mar 2020 21:55:20 +0000 (16:55 -0500)
commit4ac3eb5c5f157bea22b5ae34b0df254d729dac25
treeafb92e7b3b98a556b5b98a8c21270c7c55aa2d39
parent3ca63e1c76b7693b5d3f5ba2567421defc764249
analyzer: add regression test for fixed ICE [PR94028]

The C++ reproducer for PR analyzer/94028 generates a similar ICE
to that of the Fortran reproducer for PR analyzer/93993 and, like
it, was fixed by r10-7023-g3d66e153b40ed000af30a9e569a05f34d5d576aa.

This patch adds the C++ reproducer as a regression test.

gcc/testsuite/ChangeLog:
PR analyzer/94028
* g++.dg/analyzer/pr94028.C: New test.
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/analyzer/pr94028.C [new file with mode: 0644]