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
This commit is contained in:
Jonathan Wakely 2019-03-07 14:35:22 +00:00 committed by Jonathan Wakely
parent 5178f5c255
commit e0f7051e44
2 changed files with 5 additions and 2 deletions

View 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.

View 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 );