aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>2021-01-10 18:10:34 -0500
committerDavid Edelsohn <dje.gcc@gmail.com>2021-01-10 18:22:51 -0500
commit4a1d7f7e203d0ec4b9d67ea6fc9b84bee1e211d3 (patch)
tree999f378322aa1a95748b7ce36a171ebfe120b8db
parent872373360dab259d51caa002ff1722ff84746d8b (diff)
downloadgcc-4a1d7f7e203d0ec4b9d67ea6fc9b84bee1e211d3.zip
gcc-4a1d7f7e203d0ec4b9d67ea6fc9b84bee1e211d3.tar.gz
gcc-4a1d7f7e203d0ec4b9d67ea6fc9b84bee1e211d3.tar.bz2
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.
-rw-r--r--libstdc++-v3/testsuite/ext/vstring/cons/moveable.cc5
-rw-r--r--libstdc++-v3/testsuite/ext/vstring/modifiers/assign/move_assign.cc5
2 files changed, 10 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/ext/vstring/cons/moveable.cc b/libstdc++-v3/testsuite/ext/vstring/cons/moveable.cc
index 3c4dc87..fed6550 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 99508b0..1499fa4 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" }
+