Add tests for PR92942 - missing -Wstringop-overflow for allocations with a negative...
authorMartin Sebor <msebor@redhat.com>
Tue, 27 Oct 2020 14:31:53 +0000 (08:31 -0600)
committerMartin Sebor <msebor@redhat.com>
Tue, 27 Oct 2020 14:31:53 +0000 (08:31 -0600)
commitc0b09c1296d5334d1d264ba4d39ca932f9572330
tree82f348a4bd28b8eb636595cfa164a4f3f1935c2c
parentea126639125b77d6c46b8c8c3192a9a039d45809
Add tests for PR92942 - missing -Wstringop-overflow for allocations with a negative lower bound size.

gcc/testsuite/ChangeLog:

PR middle-end/92942
* gcc.dg/Wstringop-overflow-56.c: New test.
* gcc.dg/Wstringop-overflow-57.c: Same.
gcc/testsuite/gcc.dg/Wstringop-overflow-56.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/Wstringop-overflow-57.c [new file with mode: 0644]