]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite: Add testcase for dangling pointer equality bogus warning [PR104492]
authorJakub Jelinek <jakub@redhat.com>
Wed, 27 Apr 2022 16:47:10 +0000 (18:47 +0200)
committerJakub Jelinek <jakub@redhat.com>
Wed, 27 Apr 2022 16:47:10 +0000 (18:47 +0200)
commit948e8e401023f6c3153f6d0c449bc5c2899ee7b7
tree8ad67b837576f897081ca0861ce96f4c6ba1263c
parentf6541401407b0d09169fd716ab6d5e02c8d60642
testsuite: Add testcase for dangling pointer equality bogus warning [PR104492]

On Wed, Apr 27, 2022 at 12:02:33PM +0200, Richard Biener wrote:
> I did that but the reduction result did not resemble the same failure
> mode.  I've failed to manually construct a testcase as well.  Possibly
> a testcase using libstdc++ but less Qt internals might be possible.

Here is a testcase that I've managed to reduce, FAILs with:
FAIL: g++.dg/warn/pr104492.C  -std=gnu++14  (test for bogus messages, line 111)
FAIL: g++.dg/warn/pr104492.C  -std=gnu++17  (test for bogus messages, line 111)
FAIL: g++.dg/warn/pr104492.C  -std=gnu++20  (test for bogus messages, line 111)
on both x86_64-linux and i686-linux without your commit and passes with it.

2022-04-27  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/104492
* g++.dg/warn/pr104492.C: New test.
gcc/testsuite/g++.dg/warn/pr104492.C [new file with mode: 0644]