]> git.ipfire.org Git - thirdparty/gcc.git/commit
analyzer: add regression test [PR96598]
authorDavid Malcolm <dmalcolm@redhat.com>
Thu, 13 Aug 2020 19:11:10 +0000 (15:11 -0400)
committerGiuliano Belinassi <giuliano.belinassi@usp.br>
Mon, 17 Aug 2020 18:08:11 +0000 (15:08 -0300)
commitda1a19a6f553ee74b5b356743a7e05ce597b82fa
treec9e917cea8bd30e9aa27776a7d69c3894973ef53
parent594ee5c4fd3f671b3c9e4e4a8d70c19fa9cddaaf
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]