From: msebor Date: Tue, 15 Oct 2019 19:16:51 +0000 (+0000) Subject: PR testsuite/92016 - Excess errors in Wstringop-overflow-17.c X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=769a2825943057f1bc87b8dcd47e5dc4dca585a9;p=thirdparty%2Fgcc.git PR testsuite/92016 - Excess errors in Wstringop-overflow-17.c gcc/testsuite/ChangeLog: * gcc.dg/Wstringop-overflow-17.c: Expect an additional warning. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@277008 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d18f5b4a3ada..730e396ccea8 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-10-15 Martin Sebor + + PR testsuite/92016 + * gcc.dg/Wstringop-overflow-17.c: Expect an additional warning. + 2019-10-15 Bill Schmidt PR target/92093 diff --git a/gcc/testsuite/gcc.dg/Wstringop-overflow-17.c b/gcc/testsuite/gcc.dg/Wstringop-overflow-17.c index de22c98c753f..fdacea3972dc 100644 --- a/gcc/testsuite/gcc.dg/Wstringop-overflow-17.c +++ b/gcc/testsuite/gcc.dg/Wstringop-overflow-17.c @@ -1,12 +1,11 @@ /* Test to verify that -Wstringop-overflow mentions the referenced object - i. { dg-do compile } { dg-options "-O2 -Wall" } */ static void copy_n (char *d, const char *s, int n) { while (n--) - *d++ = *s++; + *d++ = *s++; // { dg-warning "writing 1 byte into a region of size 0" } *d = 0; // { dg-warning "writing 1 byte into a region of size 0" } }