Skip to content
Snippets Groups Projects
Commit 9a56779d authored by Jonathan Wakely's avatar Jonathan Wakely
Browse files

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.
parent b0224734
No related branches found
No related tags found
No related merge requests found
......@@ -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)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment