libstdc++: Suppress more vstring testsuite warnings. [PR 98613]
authorDavid Edelsohn <dje.gcc@gmail.com>
Sun, 10 Jan 2021 23:10:34 +0000 (18:10 -0500)
committerDavid Edelsohn <dje.gcc@gmail.com>
Sun, 10 Jan 2021 23:22:51 +0000 (18:22 -0500)
    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.

libstdc++-v3/testsuite/ext/vstring/cons/moveable.cc
libstdc++-v3/testsuite/ext/vstring/modifiers/assign/move_assign.cc

index 3c4dc8777a837d0c91b2b21372dbaf3321f66888..fed65502da875f90763b7917c6aff74502a55d60 100644 (file)
@@ -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" }
+
index 99508b0ce1611cefd26707b5cf01c9d32834d524..1499fa4ce5e07af812cd9a6ae970222844df5c2d 100644 (file)
@@ -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" }
+