From 9a56779dbc4e2d9c15be8d31e36f2f59be7331a8 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Thu, 10 Feb 2022 17:34:58 +0000 Subject: [PATCH] libstdc++: Fix FAIL: 20_util/temporary_buffer.cc for C++14 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 --git a/libstdc++-v3/testsuite/20_util/temporary_buffer.cc b/libstdc++-v3/testsuite/20_util/temporary_buffer.cc index 3f36259..54b0edb 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 pair_type; - pair_type results = std::get_temporary_buffer(5); // { dg-warning "deprecated" "" { target c++14 } } + pair_type results = std::get_temporary_buffer(5); // { dg-warning "deprecated" "" { target c++17 } } if (results.second != 0) { -- 2.7.4