diff mbox series

[committed] libstdc++: Fix FAIL: 20_util/temporary_buffer.cc for C++14

Message ID 20220211221559.3383552-1-jwakely@redhat.com
State New
Headers show
Series [committed] libstdc++: Fix FAIL: 20_util/temporary_buffer.cc for C++14 | expand

Commit Message

Jonathan Wakely Feb. 11, 2022, 10:15 p.m. UTC
Tested x86_64-linux, pushed to trunk.

-- >8 --

The std::get_temporary_buffer function is deprecated since C++17, but
the test was expecting a warning for C++14 as well.

libstdc++-v3/ChangeLog:

	* testsuite/20_util/temporary_buffer.cc: Fix dg-warning target
	selector.
---
 libstdc++-v3/testsuite/20_util/temporary_buffer.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libstdc++-v3/testsuite/20_util/temporary_buffer.cc b/libstdc++-v3/testsuite/20_util/temporary_buffer.cc
index 3f3625961b6..54b0edb00ee 100644
--- a/libstdc++-v3/testsuite/20_util/temporary_buffer.cc
+++ b/libstdc++-v3/testsuite/20_util/temporary_buffer.cc
@@ -27,7 +27,7 @@  struct junk { char j[12]; };
 int main(void)
 {
   typedef std::pair<junk*, std::ptrdiff_t> pair_type;
-  pair_type results = std::get_temporary_buffer<junk>(5); // { dg-warning "deprecated" "" { target c++14 } }
+  pair_type results = std::get_temporary_buffer<junk>(5); // { dg-warning "deprecated" "" { target c++17 } }
 
   if (results.second != 0)
   {