From 732ed80aa31ea2c92fc5234f758a94b5766bfa16 Mon Sep 17 00:00:00 2001 From: Martin Sebor Date: Mon, 15 Jan 2018 21:45:06 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/c-c++-common/attr-nonstring-3.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 382ec746bd7..aae8d1a68fc 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 1645ed3ae6d..1c50e0dc8fb 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)); } -- 2.30.2