From: Jonathan Wakely Date: Thu, 7 Mar 2019 14:35:22 +0000 (+0000) Subject: Fix new test to run as well as compile X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e0f7051e44e99d7e9f6b4d187abde5c09be5c77a;p=gcc.git Fix new test to run as well as compile * testsuite/20_util/function_objects/bind_front/1.cc: Change from compile test to run. Fix typo. From-SVN: r269457 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 45af938a329..b19eacf7fbd 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,8 @@ 2019-03-07 Jonathan Wakely + * 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. diff --git a/libstdc++-v3/testsuite/20_util/function_objects/bind_front/1.cc b/libstdc++-v3/testsuite/20_util/function_objects/bind_front/1.cc index eea31e9e8a5..8ebc2bab41a 100644 --- a/libstdc++-v3/testsuite/20_util/function_objects/bind_front/1.cc +++ b/libstdc++-v3/testsuite/20_util/function_objects/bind_front/1.cc @@ -16,7 +16,7 @@ // . // { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do run { target c++2a } } #include #include @@ -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 );