Commit 732ed80a by Martin Sebor Committed by Martin Sebor

PR testsuite/83869 - c-c++-common/attr-nonstring-3.c fails starting with r256683

testsuite/CHangeLog:
	* c-c++-common/attr-nonstring-3.c: Work around bug c++/74762.

From-SVN: r256709
parent 8b3085e7
2018-01-15 Martin Sebor <msebor@redhat.com>
PR testsuite/83869
* c-c++-common/attr-nonstring-3.c: Work around bug c++/74762.
2018-01-15 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/54613
......
......@@ -247,14 +247,14 @@ void test_stpncpy_warn (struct MemArrays *p, unsigned n)
T (stpncpy (ptr, str, N + 1));
T (stpncpy (ptr, arr, N + 1)); /* { dg-warning "argument 2 declared attribute .nonstring. is smaller than the specified bound 5" } */
T (stpncpy (arr, str, N + 1)); /* { dg-warning "writing 5 bytes into a region of size 4 overflows " } */
T (stpncpy (arr, str, N + 1)); /* { dg-warning "writing 5 bytes into a region of size 4 overflows " "bug 82609" { xfail c++ } } */
T (stpncpy (ptr, ptr, N + 1));
T (stpncpy (ptr, parr, N + 1));
T (stpncpy (parr, str, N + 1));
T (stpncpy (ptr, p->arr, N + 1)); /* { dg-warning "argument 2 declared attribute .nonstring. is smaller" } */
T (stpncpy (p->arr, p->str, N + 1)); /* { dg-warning "writing 5 bytes into a region of size 4 overflows" } */
T (stpncpy (p->arr, p->str, N + 1)); /* { dg-warning "writing 5 bytes into a region of size 4 overflows" "bug 82609" { xfail c++ } } */
T (stpncpy (p->parr, p->str, N + 1));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment