From: Jonathan Wakely Date: Wed, 5 Oct 2016 12:40:31 +0000 (+0100) Subject: 70564 fix newly-added tests for not_fn X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aaae096a1ad2bfc378769eb7f73892813049a533;p=gcc.git 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 --- 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