From aaae096a1ad2bfc378769eb7f73892813049a533 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Wed, 5 Oct 2016 13:40:31 +0100 Subject: [PATCH] 70564 fix newly-added tests for not_fn PR libstdc++/70564 * testsuite/20_util/not_fn/1.cc: Fix test. * testsuite/experimental/functional/not_fn.cc: Likewise. From-SVN: r240784 --- libstdc++-v3/ChangeLog | 4 ++++ libstdc++-v3/testsuite/20_util/not_fn/1.cc | 3 ++- libstdc++-v3/testsuite/experimental/functional/not_fn.cc | 3 ++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 7035f54068a..b3116fc785c 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,9 @@ 2016-10-05 Jonathan Wakely + PR libstdc++/70564 + * testsuite/20_util/not_fn/1.cc: Fix test. + * testsuite/experimental/functional/not_fn.cc: Likewise. + PR libstdc++/70101 * include/bits/stl_queue.h (priority_queue): Fix allocator-extended constructors. diff --git a/libstdc++-v3/testsuite/20_util/not_fn/1.cc b/libstdc++-v3/testsuite/20_util/not_fn/1.cc index 8d6e9eccee1..233a6d314aa 100644 --- a/libstdc++-v3/testsuite/20_util/not_fn/1.cc +++ b/libstdc++-v3/testsuite/20_util/not_fn/1.cc @@ -87,7 +87,8 @@ test04() void test05() { - auto nf{ std::not_fn([] { return false; }) }; + auto nf = std::not_fn([] { return false; }); + auto copy(nf); // PR libstdc++/70564 } int diff --git a/libstdc++-v3/testsuite/experimental/functional/not_fn.cc b/libstdc++-v3/testsuite/experimental/functional/not_fn.cc index 59d7621fb93..525f59cde4d 100644 --- a/libstdc++-v3/testsuite/experimental/functional/not_fn.cc +++ b/libstdc++-v3/testsuite/experimental/functional/not_fn.cc @@ -87,7 +87,8 @@ test04() void test05() { - auto nf{ not_fn([] { return false; }) }; + auto nf = std::experimental::not_fn([] { return false; }); + auto copy(nf); // PR libstdc++/70564 } int -- 2.30.2