From: msebor Date: Tue, 19 Jun 2018 17:30:47 +0000 (+0000) Subject: gcc/testsuite/ChangeLog: X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=94b4b44272866ac53033d81dfd712988df838550;p=thirdparty%2Fgcc.git gcc/testsuite/ChangeLog: PR middle-end/85602 * c-c++-common/attr-nonstring-8.c: Adjust text of expected warning to also match C++. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@261751 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8aa3c65e200c..04da05d23e12 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2018-06-19 Martin Sebor + + PR middle-end/85602 + * c-c++-common/attr-nonstring-8.c: Adjust text of expected warning + to also match C++. + 2018-06-19 Jan Hubicka * g++.dg/lto/pr84805_0.C: Update template. diff --git a/gcc/testsuite/c-c++-common/attr-nonstring-8.c b/gcc/testsuite/c-c++-common/attr-nonstring-8.c index 15b68ed23a24..36ab2a661808 100644 --- a/gcc/testsuite/c-c++-common/attr-nonstring-8.c +++ b/gcc/testsuite/c-c++-common/attr-nonstring-8.c @@ -60,7 +60,7 @@ void test_strncat_nonstring_cst (char *d) T (strncat (nd3, ns3, 4)); /* { dg-warning "argument 2 declared attribute .nonstring. is smaller than the specified bound 4" } */ /* { dg-warning "specified bound 4 exceeds destination size 3" "" { target *-*-* } .-1 } */ - T (strncat (d, pns, sizeof pns)); /* { dg-warning "argument to .sizeof. in .strncat. call is the same expression as the source" } */ + T (strncat (d, pns, sizeof pns)); /* { dg-warning "argument to .sizeof. in .\[^\n\r\]*strncat\[^\n\r\]*. call is the same expression as the source" } */ }