Fix new test to run as well as compile
authorJonathan Wakely <jwakely@redhat.com>
Thu, 7 Mar 2019 14:35:22 +0000 (14:35 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 7 Mar 2019 14:35:22 +0000 (14:35 +0000)
* testsuite/20_util/function_objects/bind_front/1.cc: Change from
compile test to run. Fix typo.

From-SVN: r269457

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/20_util/function_objects/bind_front/1.cc

index 45af938a329b5d4c6b1ee49c804bf8bd16023eb6..b19eacf7fbde61d3de15de2ee7f3c82e92becb15 100644 (file)
@@ -1,5 +1,8 @@
 2019-03-07  Jonathan Wakely  <jwakely@redhat.com>
 
+       * testsuite/20_util/function_objects/bind_front/1.cc: Change from
+       compile test to run. Fix typo.
+
        * doc/xml/manual/status_cxx2020.xml: Update C++20 status.
        * doc/html/*: Regenerate.
 
index eea31e9e8a52c07626a286f714ff5d5fd8c4e11c..8ebc2bab41a7fa2cb0e1269e423c245bd5994096 100644 (file)
@@ -16,7 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do run { target c++2a } }
 
 #include <functional>
 #include <testsuite_hooks.h>
@@ -87,7 +87,7 @@ test02()
   // constness and value category should be forwarded to the target object:
   q = g();
   VERIFY( ! q.as_const && q.as_lvalue );
-  std::move(g)();
+  q = std::move(g)();
   VERIFY( ! q.as_const && ! q.as_lvalue );
   q = cg();
   VERIFY( q.as_const && q.as_lvalue );