libstdc++: Ignore deprecated warnings [PR104037]
authorJonathan Wakely <jwakely@redhat.com>
Fri, 14 Jan 2022 22:08:16 +0000 (22:08 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Sun, 16 Jan 2022 20:18:10 +0000 (20:18 +0000)
The std::pointer_to_binary_function utility was deprecated in C++11 and
removed in C++17. Libstdc++ has started to warn about using it, so
suppress the warnings for this test.

gcc/testsuite/ChangeLog:

PR testsuite/104037
* g++.old-deja/g++.robertl/eb43.C: Ad -Wno-deprecated.

gcc/testsuite/g++.old-deja/g++.robertl/eb43.C

index 90afbe4..c54050c 100644 (file)
@@ -5,6 +5,7 @@
 // to pointer_to_binary_function, which has an `explicit' constructor.
 
 // { dg-prune-output "note" }
+// { dg-options "-Wno-deprecated" }
 
 #include <vector>
 #include <algorithm>