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.
This commit is contained in:
David Edelsohn 2021-01-10 18:10:34 -05:00
parent 872373360d
commit 4a1d7f7e20
2 changed files with 10 additions and 0 deletions

View 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" }

View 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" }