public inbox for libstdc++-cvs@sourceware.org help / color / mirror / Atom feed
From: David Edelsohn <dje@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r11-6573] libstdc++: Suppress more vstring testsuite warnings. [PR 98613] Date: Sun, 10 Jan 2021 23:21:37 +0000 (GMT) [thread overview] Message-ID: <20210110232137.E688F385803C@sourceware.org> (raw) https://gcc.gnu.org/g:4a1d7f7e203d0ec4b9d67ea6fc9b84bee1e211d3 commit r11-6573-g4a1d7f7e203d0ec4b9d67ea6fc9b84bee1e211d3 Author: David Edelsohn <dje.gcc@gmail.com> Date: Sun Jan 10 18:10:34 2021 -0500 libstdc++: Suppress more vstring testsuite warnings. [PR 98613] PR c++/57111 - 57111 - Generalize -Wfree-nonheap-object to delete can create false positive warnings for vstring _S_empty_rep. This patch prunes the excess false positive warnings from two more testcases. libstdc++-v3/ChangeLog: PR libstdc++/98613 * testsuite/ext/vstring/cons/moveable.cc: Suppress false positive warning. * testsuite/ext/vstring/modifiers/assign/move_assign.cc: Same. Diff: --- libstdc++-v3/testsuite/ext/vstring/cons/moveable.cc | 5 +++++ libstdc++-v3/testsuite/ext/vstring/modifiers/assign/move_assign.cc | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/libstdc++-v3/testsuite/ext/vstring/cons/moveable.cc b/libstdc++-v3/testsuite/ext/vstring/cons/moveable.cc index 3c4dc8777a8..fed65502da8 100644 --- a/libstdc++-v3/testsuite/ext/vstring/cons/moveable.cc +++ b/libstdc++-v3/testsuite/ext/vstring/cons/moveable.cc @@ -57,3 +57,8 @@ int main() test02(); return 0; } + +// The __versa_string destructor triggers a bogus -Wfree-nonheap-object +// due to pr54202. +// { dg-prune-output "\\\[-Wfree-nonheap-object" } + diff --git a/libstdc++-v3/testsuite/ext/vstring/modifiers/assign/move_assign.cc b/libstdc++-v3/testsuite/ext/vstring/modifiers/assign/move_assign.cc index 99508b0ce16..1499fa4ce5e 100644 --- a/libstdc++-v3/testsuite/ext/vstring/modifiers/assign/move_assign.cc +++ b/libstdc++-v3/testsuite/ext/vstring/modifiers/assign/move_assign.cc @@ -48,3 +48,8 @@ int main() test02(); return 0; } + +// The __versa_string destructor triggers a bogus -Wfree-nonheap-object +// due to pr54202. +// { dg-prune-output "\\\[-Wfree-nonheap-object" } +
reply other threads:[~2021-01-10 23:21 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20210110232137.E688F385803C@sourceware.org \ --to=dje@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ --cc=libstdc++-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).