]> gcc.gnu.org Git - gcc.git/commit
Fix tests for PR 106537.
authorJose E. Marchesi <jose.marchesi@oracle.com>
Thu, 24 Aug 2023 15:10:52 +0000 (17:10 +0200)
committerJose E. Marchesi <jose.marchesi@oracle.com>
Thu, 24 Aug 2023 15:14:01 +0000 (17:14 +0200)
commit721f7e2c4e5eed645593258624dd91e6c39f3bd2
tree9990880499ff3bfef19cc8513c735c418cbc8794
parentbbdc0e0d0042ae16aa4d09ceb52c71e746d9139d
Fix tests for PR 106537.

This patch fixes the tests for PR 106537 (support for
-W[no]-compare-distinct-pointer-types) which were expecting the
warning when checking for equality/inequality of void pointers with
non-function pointers.

gcc/testsuite/ChangeLog:

PR c/106537
* gcc.c-torture/compile/pr106537-1.c: Comparing void pointers to
non-function pointers is legit.
* gcc.c-torture/compile/pr106537-2.c: Likewise.
gcc/testsuite/gcc.c-torture/compile/pr106537-1.c
gcc/testsuite/gcc.c-torture/compile/pr106537-2.c
This page took 0.062606 seconds and 5 git commands to generate.