diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2010-08-05 07:34:08 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2010-08-05 07:34:08 +0000 |
commit | 5f1fd3469feb271afea5f336a7b9dcfc1df19d44 (patch) | |
tree | c0b0acea6f04002280b95a730e10942cf7775c30 /libstdc++-v3/testsuite | |
parent | 36b86f4a54675e0d707a33e1bc605eb4d7e6139d (diff) | |
download | gcc-5f1fd3469feb271afea5f336a7b9dcfc1df19d44.zip gcc-5f1fd3469feb271afea5f336a7b9dcfc1df19d44.tar.gz gcc-5f1fd3469feb271afea5f336a7b9dcfc1df19d44.tar.bz2 |
move.h (forward): Update to N3092.
2010-08-05 Paolo Carlini <paolo.carlini@oracle.com>
* include/bits/move.h (forward): Update to N3092.
(identity): Remove (US 92 is NAD).
* include/debug/set.h: Fix move constructor to simply use move.
* include/debug/unordered_map: Likewise.
* include/debug/multiset.h: Likewise.
* include/debug/vector: Likewise.
* include/debug/unordered_set: Likewise.
* include/debug/deque: Likewise.
* include/debug/map.h: Likewise.
* include/debug/string: Likewise.
* include/debug/list: Likewise.
* include/debug/multimap.h: Likewise.
* include/profile/set.h: Likewise.
* include/profile/unordered_map: Likewise.
* include/profile/multiset.h: Likewise.
* include/profile/unordered_set: Likewise.
* include/profile/vector: Likewise.
* include/profile/deque: Likewise.
* include/profile/map.h: Likewise.
* include/profile/list: Likewise.
* include/profile/multimap.h: Likewise.
* include/ext/vstring.h: Likewise.
* include/bits/stl_list.h: Likewise.
* include/bits/stl_map.h: Likewise.
* include/bits/stl_set.h: Likewise.
* include/bits/forward_list.h: Likewise.
* include/bits/stl_multimap.h: Likewise.
* include/bits/unordered_map.h: Likewise.
* include/bits/stl_vector.h: Likewise.
* include/bits/stl_deque.h: Likewise.
* include/bits/stl_multiset.h: Likewise.
* include/bits/unordered_set.h: Likewise.
* include/bits/stl_bvector.h: Likewise.
* testsuite/20_util/identity/value.cc: Remove
* testsuite/20_util/identity/requirements/typedefs.cc: Likewise.
* testsuite/20_util/identity/requirements/explicit_instantiation.cc:
Likewise.
From-SVN: r162898
Diffstat (limited to 'libstdc++-v3/testsuite')
3 files changed, 0 insertions, 112 deletions
diff --git a/libstdc++-v3/testsuite/20_util/identity/requirements/explicit_instantiation.cc b/libstdc++-v3/testsuite/20_util/identity/requirements/explicit_instantiation.cc deleted file mode 100644 index 691f81b..0000000 --- a/libstdc++-v3/testsuite/20_util/identity/requirements/explicit_instantiation.cc +++ /dev/null @@ -1,32 +0,0 @@ -// { dg-options "-std=gnu++0x" } -// { dg-do compile } - -// 2007-07-10 Paolo Carlini <pcarlini@suse.de> - -// Copyright (C) 2007, 2009 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 -// terms of the GNU General Public License as published by the -// Free Software Foundation; either version 3, or (at your option) -// any later version. - -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License along -// with this library; see the file COPYING3. If not see -// <http://www.gnu.org/licenses/>. - - -// NB: This file is for testing utility with NO OTHER INCLUDES. - -#include <utility> - -namespace std -{ - typedef short test_type; - template struct decay<test_type>; -} diff --git a/libstdc++-v3/testsuite/20_util/identity/requirements/typedefs.cc b/libstdc++-v3/testsuite/20_util/identity/requirements/typedefs.cc deleted file mode 100644 index c170818..0000000 --- a/libstdc++-v3/testsuite/20_util/identity/requirements/typedefs.cc +++ /dev/null @@ -1,33 +0,0 @@ -// { dg-options "-std=gnu++0x" } -// 2007-07-10 Paolo Carlini <pcarlini@suse.de> -// -// Copyright (C) 2007, 2009 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 -// terms of the GNU General Public License as published by the -// Free Software Foundation; either version 3, or (at your option) -// any later version. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License along -// with this library; see the file COPYING3. If not see -// <http://www.gnu.org/licenses/>. - -// -// NB: This file is for testing utility with NO OTHER INCLUDES. - -#include <utility> - -// { dg-do compile } - -void test01() -{ - // Check for required typedefs - typedef std::identity<int> test_type; - typedef test_type::type type; -} diff --git a/libstdc++-v3/testsuite/20_util/identity/value.cc b/libstdc++-v3/testsuite/20_util/identity/value.cc deleted file mode 100644 index 80b444b..0000000 --- a/libstdc++-v3/testsuite/20_util/identity/value.cc +++ /dev/null @@ -1,47 +0,0 @@ -// { dg-options "-std=gnu++0x" } -// 2007-07-10 Paolo Carlini <pcarlini@suse.de> -// -// Copyright (C) 2007, 2009 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 -// terms of the GNU General Public License as published by the -// Free Software Foundation; either version 3, or (at your option) -// any later version. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License along -// with this library; see the file COPYING3. If not see -// <http://www.gnu.org/licenses/>. - -#include <utility> -#include <testsuite_hooks.h> -#include <testsuite_tr1.h> - -void test01() -{ - bool test __attribute__((unused)) = true; - using std::identity; - using std::is_same; - using namespace __gnu_test; - - VERIFY( (is_same<identity<int>::type, int>::value) ); - VERIFY( (is_same<identity<int&>::type, int&>::value) ); - VERIFY( (is_same<identity<int&&>::type, int&&>::value) ); - VERIFY( (is_same<identity<int*>::type, int*>::value) ); - VERIFY( (is_same<identity<ClassType&&>::type, ClassType&&>::value) ); - VERIFY( (is_same<identity<ClassType>::type, ClassType>::value) ); - VERIFY( (is_same<identity<int(int)>::type, int(int)>::value) ); - VERIFY( (is_same<identity<void>::type, void>::value) ); - VERIFY( (is_same<identity<const void>::type, const void>::value) ); -} - -int main() -{ - test01(); - return 0; -} |