[testsuite] Make the Wnonnull independent of system headers.
authorIain Sandoe <iain@sandoe.co.uk>
Tue, 22 Oct 2019 03:40:26 +0000 (03:40 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Tue, 22 Oct 2019 03:40:26 +0000 (03:40 +0000)
commit24b54eb2fd9ee616d899683a459756072e3a1c4d
tree993f780df5c4b46bc63d3bcdd2ca6dc842552ac3
parent8c72657917ad7b9160c36a5b7b240b3389da8eec
[testsuite] Make the Wnonnull independent of system headers.

To avoid the result of this test depending on the implementation of
the system 'string.h', provide prototypes for the two functions used
in the test.

gcc/testsuite/ChangeLog:

2019-10-22  Iain Sandoe  <iain@sandoe.co.uk>

* gcc.dg/Wnonnull.c: Provide prototypes for strlen and memcpy.
Use __SIZE_TYPE__ instead of size_t.

From-SVN: r277280
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wnonnull.c