70564 fix newly-added tests for not_fn
authorJonathan Wakely <jwakely@redhat.com>
Wed, 5 Oct 2016 12:40:31 +0000 (13:40 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 5 Oct 2016 12:40:31 +0000 (13:40 +0100)
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
libstdc++-v3/testsuite/20_util/not_fn/1.cc
libstdc++-v3/testsuite/experimental/functional/not_fn.cc

index 7035f54068a37034039e2ab189e2adcd2610f2ab..b3116fc785c804c7ae680265ca75df4490c6d8f1 100644 (file)
@@ -1,5 +1,9 @@
 2016-10-05  Jonathan Wakely  <jwakely@redhat.com>
 
+       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.
index 8d6e9eccee111218be0cc0d06f49c199505a606a..233a6d314aaf28a3b4365bba2a88202729b5ff89 100644 (file)
@@ -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
index 59d7621fb932baf8984628568afa453abde9a26c..525f59cde4dacb0d90734e4365520818d4f1380f 100644 (file)
@@ -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