diff options
author | Martin Sebor <msebor@redhat.com> | 2019-10-15 19:16:51 +0000 |
---|---|---|
committer | Martin Sebor <msebor@gcc.gnu.org> | 2019-10-15 13:16:51 -0600 |
commit | 863950d280dd0bc02edce2e88484735cea5bd1c7 (patch) | |
tree | 0cc66c8dd2f1aaa9bc2f38fce5991ee6cc53e679 | |
parent | 7e601a1d3ef4bf1467bc85d01f641bdbbf3e7fd8 (diff) | |
download | gcc-863950d280dd0bc02edce2e88484735cea5bd1c7.zip gcc-863950d280dd0bc02edce2e88484735cea5bd1c7.tar.gz gcc-863950d280dd0bc02edce2e88484735cea5bd1c7.tar.bz2 |
PR testsuite/92016 - Excess errors in Wstringop-overflow-17.c
gcc/testsuite/ChangeLog:
* gcc.dg/Wstringop-overflow-17.c: Expect an additional warning.
From-SVN: r277008
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/Wstringop-overflow-17.c | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d18f5b4..730e396 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-10-15 Martin Sebor <msebor@redhat.com> + + PR testsuite/92016 + * gcc.dg/Wstringop-overflow-17.c: Expect an additional warning. + 2019-10-15 Bill Schmidt <wschmidt@linux.ibm.com> PR target/92093 diff --git a/gcc/testsuite/gcc.dg/Wstringop-overflow-17.c b/gcc/testsuite/gcc.dg/Wstringop-overflow-17.c index de22c98..fdacea3 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" } } |