diff options
author | Martin Sebor <msebor@redhat.com> | 2018-06-19 17:30:47 +0000 |
---|---|---|
committer | Martin Sebor <msebor@gcc.gnu.org> | 2018-06-19 11:30:47 -0600 |
commit | 5f21ea6739d9dae27a1c6ffe94ea28792f02124a (patch) | |
tree | 42d828e32aaae5f6c310c385feebe7ba05653275 /gcc | |
parent | 828d64499e4a433d1b252f347ffb2c8dc9a008f4 (diff) | |
download | gcc-5f21ea6739d9dae27a1c6ffe94ea28792f02124a.zip gcc-5f21ea6739d9dae27a1c6ffe94ea28792f02124a.tar.gz gcc-5f21ea6739d9dae27a1c6ffe94ea28792f02124a.tar.bz2 |
re PR middle-end/85602 (-Wsizeof-pointer-memaccess for strncat with size of source)
gcc/testsuite/ChangeLog:
PR middle-end/85602
* c-c++-common/attr-nonstring-8.c: Adjust text of expected warning
to also match C++.
From-SVN: r261751
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/c-c++-common/attr-nonstring-8.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8aa3c65..04da05d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2018-06-19 Martin Sebor <msebor@redhat.com> + + 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 <hubicka@ucw.cz> * 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 15b68ed..36ab2a6 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" } */ } |