diff options
author | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-05-19 13:31:36 +0000 |
---|---|---|
committer | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-05-19 13:31:36 +0000 |
commit | 2185f051da5cd558e109510363d53afcd58df522 (patch) | |
tree | 2f81fad09a8b6e3a2822f5aa8d49226859e91639 /libstdc++-v3/testsuite/20_util/pair/get.cc | |
parent | 6af3ee970545d4ddde77b5ac53404bb1ce7a593f (diff) | |
download | gcc-2185f051da5cd558e109510363d53afcd58df522.tar.gz |
* include/std/tuple (get): Implement N3670.
* include/std/utility (get): Likewise.
* testsuite/20_util/pair/get.cc: Move to ...
* testsuite/20_util/pair/astuple/get.cc: Here.
* testsuite/20_util/pair/astuple/astuple.cc: New.
* testsuite/20_util/pair/astuple/constexpr_get.cc: New.
* testsuite/20_util/pair/astuple/constexpr_get_by_type.cc: New.
* testsuite/20_util/pair/astuple/get_by_type.cc: New.
* testsuite/20_util/pair/astuple/get_by_type_neg.cc: New.
* testsuite/20_util/pair/astuple/get_neg.cc: New.
* testsuite/20_util/tuple/element_access/constexpr_get_by_type.cc: New.
* testsuite/20_util/tuple/element_access/get2_by_type.cc: New.
* testsuite/20_util/tuple/element_access/get_by_type.cc: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199082 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/testsuite/20_util/pair/get.cc')
-rw-r--r-- | libstdc++-v3/testsuite/20_util/pair/get.cc | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/libstdc++-v3/testsuite/20_util/pair/get.cc b/libstdc++-v3/testsuite/20_util/pair/get.cc deleted file mode 100644 index 0ff807a3a14..00000000000 --- a/libstdc++-v3/testsuite/20_util/pair/get.cc +++ /dev/null @@ -1,31 +0,0 @@ -// { dg-do compile } -// { dg-options "-std=gnu++0x" } - -// 2011-05-16 Paolo Carlini <paolo.carlini@oracle.com> -// -// Copyright (C) 2011-2013 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> - -void test01() -{ - std::pair<float, int> p; - - float&& pfirst __attribute__((unused)) = std::get<0>(std::move(p)); - int&& psecond __attribute__((unused)) = std::get<1>(std::move(p)); -} |