From: Martin Sebor Date: Mon, 15 Jan 2018 21:45:06 +0000 (+0000) Subject: PR testsuite/83869 - c-c++-common/attr-nonstring-3.c fails starting with r256683 X-Git-Tag: upstream/12.2.0~34062 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=732ed80aa31ea2c92fc5234f758a94b5766bfa16;p=platform%2Fupstream%2Fgcc.git 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 382ec74..aae8d1a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2018-01-15 Martin Sebor + + PR testsuite/83869 + * c-c++-common/attr-nonstring-3.c: Work around bug c++/74762. + 2018-01-15 Thomas Koenig PR fortran/54613 diff --git a/gcc/testsuite/c-c++-common/attr-nonstring-3.c b/gcc/testsuite/c-c++-common/attr-nonstring-3.c index 1645ed3..1c50e0d 100644 --- a/gcc/testsuite/c-c++-common/attr-nonstring-3.c +++ b/gcc/testsuite/c-c++-common/attr-nonstring-3.c @@ -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)); }