diff options
author | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-09 23:17:05 +0000 |
---|---|---|
committer | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-09 23:17:05 +0000 |
commit | 9360ddee8789faeacee421492197167478ff5578 (patch) | |
tree | 5712750845d86ae3b8661ee0191bd71852da8a8b /libstdc++-v3/testsuite/30_threads/packaged_task/members/reset.cc | |
parent | c6337549cc49694cebd36c1630838c7e406bc0f7 (diff) | |
download | gcc-9360ddee8789faeacee421492197167478ff5578.tar.gz |
2011-02-09 Jonathan Wakely <jwakely.gcc@gmail.com>
* include/std/future (packaged_task::operator bool): Rename to...
(packaged_task::valid): ...this.
* testsuite/30_threads/packaged_task/cons/1.cc: Adjust.
* testsuite/30_threads/packaged_task/cons/2.cc: Adjust.
* testsuite/30_threads/packaged_task/cons/move.cc: Adjust.
* testsuite/30_threads/packaged_task/cons/move_assign.cc: Adjust.
* testsuite/30_threads/packaged_task/cons/alloc.cc: Adjust.
* testsuite/30_threads/packaged_task/members/invoke.cc: Adjust.
* testsuite/30_threads/packaged_task/members/reset.cc: Adjust.
* testsuite/30_threads/packaged_task/members/reset2.cc: Adjust.
* testsuite/30_threads/packaged_task/members/swap.cc: Adjust.
* testsuite/30_threads/packaged_task/members/boolconv.cc: Remove.
* testsuite/30_threads/packaged_task/members/valid.cc: Add.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169988 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/testsuite/30_threads/packaged_task/members/reset.cc')
-rw-r--r-- | libstdc++-v3/testsuite/30_threads/packaged_task/members/reset.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/testsuite/30_threads/packaged_task/members/reset.cc b/libstdc++-v3/testsuite/30_threads/packaged_task/members/reset.cc index a126c3ace88..01a06d6a3c2 100644 --- a/libstdc++-v3/testsuite/30_threads/packaged_task/members/reset.cc +++ b/libstdc++-v3/testsuite/30_threads/packaged_task/members/reset.cc @@ -6,7 +6,7 @@ // { dg-require-gthreads "" } // { dg-require-atomic-builtins "" } -// Copyright (C) 2009 Free Software Foundation, Inc. +// Copyright (C) 2009. 2010, 2011 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -39,7 +39,7 @@ void test01() future<int> f1 = p1.get_future(); p1.reset(); - VERIFY( static_cast<bool>(p1) ); + VERIFY( p1.valid() ); future<int> f2 = p1.get_future(); |