analyzer: add regression test [PR96598]
authorDavid Malcolm <dmalcolm@redhat.com>
Thu, 13 Aug 2020 19:11:10 +0000 (15:11 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Thu, 13 Aug 2020 23:08:20 +0000 (19:08 -0400)
commit2ec32ddf822887cddc8910ed30dc105890def4ee
tree2599c75323a6d77ff8c7fd2c7ef4a22f1b70197d
parent808f4dfeb3a95f50f15e71148e5c1067f90a126d
analyzer: add regression test [PR96598]

PR analyzer/96598 reports that -fanalyzer issues a false
  warning: use of NULL 'str' where non-null expected
with gcc 10.2 when used with -fsanitize=undefined.

This was fixed by g:808f4dfeb3a95f50f15e71148e5c1067f90a126d.

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