gcc/testsuite/ChangeLog:
* gcc.dg/Wstringop-overflow-17.c: Expect an additional warning.
From-SVN: r277008
+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
/* 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" }
}